Closed SimeonC closed 1 year ago
@SimeonC In buttonGroup @SashaShostyr has used box-shadow inset for the button borders, and a standard border for the focus which seems to work nicely.
Just tried this on iconButton and it keeps a consistent total height of buttons regardless if they have borders or not, and seems to solve this issue.
Any issue with using this approach? If not I'll update the button to follow suit
.
I think there may have been some issues with the button group, but apart from that yea I think this should be OK.
It'd be great if we could just globally apply this to :focus-visible
rather than have to add it to each component 🤔
Having an inconsistent width border has issues like below, this needs to be fixed in both Button and Button Icon components.
Possible solutions here: https://stackoverflow.com/questions/38165317/dont-affect-positioning-of-other-elements-on-border-width-changes