Open joshwooding opened 10 months ago
cc @pseys
Buttons currently have 4 different sizes:
Size Description Base Standalone Buttons Selectable Pill close button Base - spacing 100 Input adornment Base - spacing 50 Multiline Input adornment This makes code and composition of components quite brittle e.g. #2759 #2740
Pill (next) close button looks like it's using --salt-size-base
- --salt-spacing-100
similar to input adornment, not --selectable
.
Toggle Button group is another example of --salt-size-base
- --salt-spacing-100
Thanks, updated the description. Do you think we need a size prop for Button? I think it will be cleaner
Thanks, updated the description. Do you think we need a size prop for Button? I think it will be cleaner
Yes I think that might be beneficial. I think there are two things here, removing instancing of size and space being used to drive the height of a component/element and enabling buttons to be reduced in height based on context.
Switch also uses --salt-size-base
- --salt-spacing-100
to control height.
Proposed changes have been identified, setting up time for review.
Buttons currently have 4 different sizes:
This makes code and composition of components quite brittle e.g. #2759 #2740