Remove idealSize
usage from expanding components
#407
Labels
Milestone
idealSize
usage from expanding components
#407
EDIT:
fixedSize
modifier works fine only when the size of the component would be indeed smaller than provided size. But it is unusable in situations where long text and/or large accessibility font sizes make the component bigger, because it fixes the size of component no matter what is the the proposed parent size.NOT DOING:
The
idealSize
modifier is useful for components that should have fixed size by default, but can be optionally made expandable (Tag
).But for components like
Alert
orButton
, thefixedSize
modifier seems to be enough to restrict the size in all variants, even for container components likeAlert
(containing expandingButton
). There might have been an original reason for having it there, but after rechecking, it seems it is not needed there.Ideally, we would not need the
idealSize
modifier at all, if this would achieve the same effect of telling the component that it shouldnot
fix its own size:For that, the component would need to have the knowledge of that and so far I found no way of doing that easily.
The text was updated successfully, but these errors were encountered: