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
Action button now uses Spectrum 2 tokens and design specifications. A few notable changes:
6
+
7
+
- Medium is now the default size and `.spectrum-ActionButton--sizeM` has been removed.
8
+
- Includes the Spectrum 2 down state transform.
9
+
- The component border was not removed and its color was changed to `transparent` in order to continue support for Windows High Contrast / forced colors, which still shows a border. The mod custom properties for border were removed to avoid interference with Windows High Contrast / forced colors accessibility.
10
+
- Some selectors to target the icon + text button and the icon-only button have been simplified using `:has`. This removes some overly complex `calc()` functions used for inline spacing, uses the design tokens more directly, and removes the previously documented need for the component's child elements to use a specific source order.
11
+
- Background and content colors were updated.
12
+
- Mod custom properties have been adjusted:
13
+
- Renamed:
14
+
-`--mod-line-height-100` renamed to `--mod-actionbutton-line-height`.
15
+
-`--mod-sans-font-family-stack` renamed to `--mod-button-font-family`.
16
+
-`--mod-animation-duration-100` renamed to `--mod-button-animation-duration`.
There is a mod to align the help text label vertically if the message is one line `--mod-helptext-align-text`. The default is `flex-start` which supports multiline wrapped text.
Copy file name to clipboardExpand all lines: .storybook/CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# Change Log
2
2
3
+
## 12.0.4
4
+
5
+
### Patch Changes
6
+
7
+
-[#3527](https://github.com/adobe/spectrum-css/pull/3527)[`5f1751c`](https://github.com/adobe/spectrum-css/commit/5f1751c82a5fe55ae0d999f5f50cfeca4c8a5c75) Thanks [@castastrophe](https://github.com/castastrophe)! - Minor dependency updates to align with the larger project.
This updates the colors used in action button for the spectrum two theme, so they are closer aligned with the spectrum 2 spec, per the request in SWC-597. This removes the border by making it transparent and updates the background color tokens that are used.
5
+
### Major Changes
10
6
11
-
This also includes a forced-colors/high contrast mode fix for the selected + disabled state. This now shows the disabled colors.
7
+
-[#2669](https://github.com/adobe/spectrum-css/pull/2669)[`b2c6357`](https://github.com/adobe/spectrum-css/commit/b2c6357c542737fb996cf8378354f525adde1fc2) Thanks [@mdt2](https://github.com/mdt2)! - Action button now uses Spectrum 2 tokens and design specifications. A few notable changes:
8
+
9
+
- Medium is now the default size and `.spectrum-ActionButton--sizeM` has been removed.
10
+
- Includes the Spectrum 2 down state transform.
11
+
- The component border was not removed and its color was changed to `transparent` in order to continue support for Windows High Contrast / forced colors, which still shows a border. The mod custom properties for border were removed to avoid interference with Windows High Contrast / forced colors accessibility.
12
+
- Some selectors to target the icon + text button and the icon-only button have been simplified using `:has`. This removes some overly complex `calc()` functions used for inline spacing, uses the design tokens more directly, and removes the previously documented need for the component's child elements to use a specific source order.
13
+
- Background and content colors were updated.
14
+
- Mod custom properties have been adjusted:
15
+
- Renamed:
16
+
-`--mod-line-height-100` renamed to `--mod-actionbutton-line-height`.
17
+
-`--mod-sans-font-family-stack` renamed to `--mod-button-font-family`.
18
+
-`--mod-animation-duration-100` renamed to `--mod-button-animation-duration`.
19
+
- Removed:
20
+
-`--mod-actionbutton-border-color-default`
21
+
-`--mod-actionbutton-border-color-disabled`
22
+
-`--mod-actionbutton-border-color-down`
23
+
-`--mod-actionbutton-border-color-focus`
24
+
-`--mod-actionbutton-border-color-hover`
25
+
-`--mod-actionbutton-border-width`
26
+
-`--mod-actionbutton-static-content-color`
27
+
- New:
28
+
-`--mod-actionbutton-font-weight`
29
+
-`--mod-actionbutton-font-style`
12
30
13
31
## 8.0.0-next.0
14
32
@@ -17,6 +35,16 @@ This also includes a forced-colors/high contrast mode fix for the selected + dis
This updates the colors used in action button for the spectrum two theme, so they are closer aligned with the spectrum 2 spec, per the request in SWC-597. This removes the border by making it transparent and updates the background color tokens that are used.
45
+
46
+
This also includes a forced-colors/high contrast mode fix for the selected + disabled state. This now shows the disabled colors.
0 commit comments