Button: Small buttons are not sized correctly
See screenshot (from https://modus-web-components.trimble.com/?path=/docs/components-content-tree--multi-selection) showing active state here:
We should specify height and width of the button, or set consistent vertical/horizontal padding to fix this issue.
The actionbar is just a collection of modus buttons so the issue should be addressed on small buttons. Ensure size and focus borders are correct after fix.
@ElishaSamPeterPrabhu Maybe the modus-button should have icon-only on it e.g. icon-only="add" ?
@ElishaSamPeterPrabhu Maybe the modus-button should have
icon-onlyon it e.g.icon-only="add"?
Yes we can do that but the icon map doesn't contain for the other icons
So where should we update them?
...or instead use some custom CSS like:
height: 28px; width: 28px; padding: 8px; margin-left: 8px
height: 28px; width: 28px; padding: 8px; margin-left: 8px
after applying the css
Is this the expected look?
Is this the expected look?
not exactly, I just included that CSS as a starting point which improves things somewhat.
Is this the expected look?
not exactly, I just included that CSS as a starting point which improves things somewhat.
@coliff There are two points to address
- #1466 has a similar need to decide between modus button with icon-only property or the custom css with svg.
- Is there a reference on how the custom bar should look as its not available in figma?