:wave: I have an Icon Button and I want to set the...
# jewel
k
👋 I have an Icon Button and I want to set the size so that it can be accessibility friendly, but currently I just have it like this:
Copy code
modifier = Modifier.size(20.dp)
I was wondering if jewel had something similar to Material's
Modifier.minimumInteractiveComponentSize()
? Thank you so much!
s
Hi Kate! We don't enforce general minimum sizes, mainly because we're replicating the Swing implementation of the Int UI specs, which doesn't have a general minimum size.
Plus, with Jewel being desktop-only, we don't have the same requirement that Material has to have touch targets that are large enough. Our users are universally using a mouse, which makes it a lot less of a problem.
k
Ah that makes sense, so is just hardcoding the size the best bet you think? What about sizing vectors?
s
I think having icons the right size already makes sense if you'd end up hard coding the sizes anyways
k
Okay, thank you so much!
s
No problem :)