You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(button): restore ability for button text to wrap
Remove the CSS that prevents the text in the button from wrapping.
The guidelines for the component say "When the button text is too long
for the horizontal space available, it wraps to form another line."
* docs(button): add wrapping text story
Add "Wrapping" story that demonstrates a button with long text that
wraps to the next line. Some template adjustments and additional args
added to allow for this.
* fix(button)!: icon alignment when text is wrapping
BREAKING CHANGE: changes vertical flex alignment to start.
Previously when the button had an icon and the text was wrapping, the
icon was vertically aligned center and the text was aligned center.
This fixes this to match with the design spec: for the version of the
button that uses a workflow icon, the icon should stay aligned to the
top, and the text should be aligned left (start). This uses the defined
token for the space between the top of the component and the workflow
icon (--spectrum-component-top-to-workflow-icon-*).
* docs(button): rename storybook control to layout
Rename Storybook control for stacking buttons to "layout" with specified
options, which is a more appropriate name. The control has also been
made visible.
* fix(button): support any existing use of ui icons
Support any existing use of ui icons with the updated wrapping behavior.
And add Chromatic only testing of them to the Wrapping story.
Workflow icons are intended, with the use of the
spectrum-component-top-to-workflow-icon tokens, but UI icons have not
yet been specifically excluded in guidelines and are currently in use
within SplitButton in this library. This keeps UI icons that are
smaller than the intended workflow icon, better vertically centered
with the text within the button.
* feat(button): mod property for icon margin top
Add a mod property to make it easy to modify the margin-block-start of
the icon, in case of alignment issues with icons that are not the
intended workflow sizes.
0 commit comments