Replies: 1 comment
-
Was just about to post a suggestion to have e.g. I want <div class="m-auto lg:m-inherit">Centered on mobile, normal otherwise</div> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I find
inherit
to be of great value when working with border radius and especially within a component system.Take for example, the following structure:
Having an
inherit
class for border radii is quite valuable since then I only need to set the value at the topmost level. If I had abstracted the outmost element to beCard
and the inner ones to their ownCardHeader
,CardFooter
etc. this becomes even more helpful since I can just set their defaults toinherit
.And yes, I do know how to modify the config myself for my own projects, I just thought that this might be of value for a wider audience which is why I am suggested that it is added to the default config.
Also, I recognize that some people might reach for
overflow: hidden
in this case, but I find that both unnecessary and a foot gun (since it has the potential to mess with tooltips and popovers — if you don't have the ability to render those outside of the element).Beta Was this translation helpful? Give feedback.
All reactions