Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Separate conditions depending on children - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
4y ago
•
23 replies
aolko
Separate conditions depending on children
How do i specify separate conditions if element has different children
?
For example
- if a
.button
.button
only has
.icon
.icon
- set the
aspect-ratio
aspect-ratio
to
1/1
1/1
, if it has
.icon
.icon
and
.text
.text
-
unset
unset
the
aspect-ratio
aspect-ratio
and set the
width
width
to
100%
100%
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Dynamic amount of columns depending on children size
KP-C
Kevin Powell - Community / front-end
3y ago
Jest error with conditions on props.
KP-C
Kevin Powell - Community / front-end
3y ago
Changing text depending on url data
KP-C
Kevin Powell - Community / front-end
3y ago
Grid children not stretching + centering children alignment
KP-C
Kevin Powell - Community / front-end
2y ago