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
* chore: merge latest from main
* docs(button): restore autodocs page after mdx removal
* docs(icon): adjust story visibility and order
In the switch back to autodocs from a custom MDX, some newly added
stories for S2 needed to be hidden for the Docs page, and some story
titles needing renaming to keep related stories in order.
---------
Co-authored-by: Josh Winn <[email protected]>
This update aims to simplify `--mod-*` access by ensuring local variants and states aren't hooking into those custom properties for overrides. This updates all local variants and states to override the `--spectrum-button-*` properties instead and adjusts the specificity to ensure no regressions in rendered results.
33
+
34
+
Other changes of note:
35
+
36
+
- Removes the `.spectrum-Button--sizeM` as unnecessary and duplicate as these styles are applied in the base class.
37
+
- Reduces the use of the `:not()` pseudo-class in theme overrides as these selectors are more complex to remap for web component projects.
* Buttons allow users to perform an action or to navigate to another page. They have multiple styles for various needs, and are ideal for calling attention to where a user needs to do something in order to move forward in a flow.
12
+
*
13
+
* There are four available variants that are used for different levels of emphasis and different
14
+
* types of actions. By default, a button uses the fill style with a solid background. The primary
15
+
* and secondary variants also have an outline option.
* When a button needs to be placed on top of a dark color background or a visual, use the static white options. Static color buttons do not change shades or values depending upon the color theme.
StaticWhiteSecondary.storyName="Static white - secondary";
221
231
232
+
/**
233
+
* When a button needs to be placed on top of a light color background or a visual, use the static black options. Static color buttons do not change shades or values depending upon the color theme.
0 commit comments