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(commons): remove renamed mods marked for deprecation (#2580)
* fix(commons): remove renamed mods marked for deprecation
Remove mods that were renamed and previously marked for deprecation,
and regenerate mods lists. This will help in reviewing the accuracy of
other components' mods lists as they are being migrated to s2.
* docs: migration guide notes for mod property deprecations
Add notes to components affected by mod property changes in the commons
basebutton.
* docs(closebutton): updated docs for migration guide and icon size
- Removes the "Icon size" variant options, as noted in the closebutton
PR. Per Figma changelog "removed icon size as a property".
- Updates migration guide with a more organized history.
* fix(commons): remove another mod referencing global token
Deprecates an additional mod name that was referencing a global token,
and updates migration notes for all affected components.
Copy file name to clipboardexpand all lines: components/actionbutton/metadata/actionbutton.yml
+15-7
Original file line number
Diff line number
Diff line change
@@ -12,16 +12,24 @@ sections:
12
12
This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found <a class="spectrum-Link" href="https://github.com/adobe/spectrum-css/tree/main/components/actionbutton/metadata/mods.md">here</a>.
13
13
- name: Migration Guide
14
14
description: |
15
-
### Action Button now requires a class on its icon
15
+
### x/x/2024 - Version 6.0.0
16
+
#### Spectrum 2 release
17
+
Action button now uses Spectrum 2 tokens and specifications. A few notable changes:
18
+
- The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`.
19
+
- The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`.
20
+
- The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`.
21
+
22
+
### Versions prior to 6.0.0
23
+
#### Action Button now requires a class on its icon
16
24
The `.spectrum-ActionButton-icon` class is now required on the icon.
17
25
18
-
### T-shirt sizing
26
+
#### T-shirt sizing
19
27
Action Button now supports t-shirt sizing and requires that you specify the size by adding a `.spectrum-ActionButton--size*` class.
20
28
21
-
### Action Button is now a separate component
29
+
#### Action Button is now a separate component
22
30
Action Button has been moved to the [Action Button](actionbutton.html) component.
23
31
24
-
### Change workflow icon size
32
+
#### Change workflow icon size
25
33
26
34
Previously, all Action Buttons used `.spectrum-Icon--sizeS`. This has changed:
Copy file name to clipboardexpand all lines: components/button/metadata/button-accent.yml
+14-6
Original file line number
Diff line number
Diff line change
@@ -8,20 +8,28 @@ sections:
8
8
This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found <a class="spectrum-Link" href="https://github.com/adobe/spectrum-css/tree/main/components/button/metadata/mods.md">here</a>.
9
9
- name: Migration Guide
10
10
description: |
11
-
### Fill or Outline class required
11
+
### x/x/2024 - Version 13.0.0
12
+
#### Spectrum 2 release
13
+
Button now uses Spectrum 2 tokens and specifications. A few notable changes:
14
+
- The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`.
15
+
- The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`.
16
+
- The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`.
17
+
18
+
### Versions prior to 13.0.0
19
+
#### Fill or Outline class required
12
20
All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class.
13
21
14
-
### CTA replaced by Accent with Fill
22
+
#### CTA replaced by Accent with Fill
15
23
Replace all `.spectrum-Button--cta` with `.spectrum-Button--accent .spectrum-Button--fill`.
16
24
17
-
### Icon Only
25
+
#### Icon Only
18
26
Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label.
19
27
Provide an `aria-label` on the button itself when using this variant for accessibility.
20
28
21
-
### T-shirt sizing
29
+
#### T-shirt sizing
22
30
Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class.
23
31
24
-
### Change workflow icon size
32
+
#### Change workflow icon size
25
33
26
34
Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed:
Copy file name to clipboardexpand all lines: components/button/metadata/button-negative.yml
+15-7
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,31 @@ sections:
8
8
This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found <a class="spectrum-Link" href="https://github.com/adobe/spectrum-css/tree/main/components/button/metadata/mods.md">here</a>.
9
9
- name: Migration Guide
10
10
description: |
11
-
### Fill or Outline class required
11
+
### x/x/2024 - Version 13.0.0
12
+
#### Spectrum 2 release
13
+
Button now uses Spectrum 2 tokens and specifications. A few notable changes:
14
+
- The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`.
15
+
- The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`.
16
+
- The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`.
17
+
18
+
### Versions prior to 13.0.0
19
+
#### Fill or Outline class required
12
20
All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class.
13
21
14
-
### Negative replaced by Negative with Outline
22
+
#### Negative replaced by Negative with Outline
15
23
Replace all `.spectrum-Button--negative` with `.spectrum-Button--negative .spectrum-Button--outline`.
16
24
17
-
### Negative Quiet replaced by Negative with Outline
25
+
#### Negative Quiet replaced by Negative with Outline
18
26
Replace all `.spectrum-Button--negative .spectrum-Button--quiet` with `.spectrum-Button--negative .spectrum-Button--outline`.
19
27
20
-
### Icon Only
28
+
#### Icon Only
21
29
Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label.
22
30
Provide an `aria-label` on the button itself when using this variant for accessibility.
23
31
24
-
### T-shirt sizing
32
+
#### T-shirt sizing
25
33
Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class.
26
34
27
-
### Change workflow icon size
35
+
#### Change workflow icon size
28
36
29
37
Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed:
Copy file name to clipboardexpand all lines: components/button/metadata/button-primary.yml
+15-7
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,31 @@ sections:
8
8
This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found <a class="spectrum-Link" href="https://github.com/adobe/spectrum-css/tree/main/components/button/metadata/mods.md">here</a>.
9
9
- name: Migration Guide
10
10
description: |
11
-
### Fill or Outline class required
11
+
### x/x/2024 - Version 13.0.0
12
+
#### Spectrum 2 release
13
+
Button now uses Spectrum 2 tokens and specifications. A few notable changes:
14
+
- The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`.
15
+
- The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`.
16
+
- The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`.
17
+
18
+
### Versions prior to 13.0.0
19
+
#### Fill or Outline class required
12
20
All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class.
13
21
14
-
### Primary replaced by Primary with Outline
22
+
#### Primary replaced by Primary with Outline
15
23
Replace all `.spectrum-Button--primary` with `.spectrum-Button--primary .spectrum-Button--outline`.
16
24
17
-
### Primary Quiet replaced by Secondary with Outline
25
+
#### Primary Quiet replaced by Secondary with Outline
18
26
Replace all `.spectrum-Button--primary .spectrum-Button--quiet` with `.spectrum-Button--secondary .spectrum-Button--outline`.
19
27
20
-
### Icon Only
28
+
#### Icon Only
21
29
Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label.
22
30
Provide an `aria-label` on the button itself when using this variant for accessibility.
23
31
24
-
### T-shirt sizing
32
+
#### T-shirt sizing
25
33
Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class.
26
34
27
-
### Change workflow icon size
35
+
#### Change workflow icon size
28
36
29
37
Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed:
Copy file name to clipboardexpand all lines: components/button/metadata/button-secondary.yml
+15-7
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,31 @@ sections:
8
8
This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found <a class="spectrum-Link" href="https://github.com/adobe/spectrum-css/tree/main/components/button/metadata/mods.md">here</a>.
9
9
- name: Migration Guide
10
10
description: |
11
-
### Fill or Outline class required
11
+
### x/x/2024 - Version 13.0.0
12
+
#### Spectrum 2 release
13
+
Button now uses Spectrum 2 tokens and specifications. A few notable changes:
14
+
- The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`.
15
+
- The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`.
16
+
- The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`.
17
+
18
+
### Versions prior to 13.0.0
19
+
#### Fill or Outline class required
12
20
All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class.
13
21
14
-
### Secondary replaced by Secondary with Outline
22
+
#### Secondary replaced by Secondary with Outline
15
23
Replace all `.spectrum-Button--secondary` with `.spectrum-Button--secondary .spectrum-Button--outline`.
16
24
17
-
### Secondary Quiet replaced by Secondary with Outline
25
+
#### Secondary Quiet replaced by Secondary with Outline
18
26
Replace all `.spectrum-Button--secondary .spectrum-Button--quiet` with `.spectrum-Button--secondary .spectrum-Button--outline`.
19
27
20
-
### Icon Only
28
+
#### Icon Only
21
29
Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label.
22
30
Provide an `aria-label` on the button itself when using this variant for accessibility.
23
31
24
-
### T-shirt sizing
32
+
#### T-shirt sizing
25
33
Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class.
26
34
27
-
### Change workflow icon size
35
+
#### Change workflow icon size
28
36
29
37
Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed:
Copy file name to clipboardexpand all lines: components/button/metadata/button-staticcolor.yml
+15-7
Original file line number
Diff line number
Diff line change
@@ -8,23 +8,31 @@ sections:
8
8
This component can be modified via its `--mod-*` prefixed custom properties. A list of those prefixed custom properties can be found <a class="spectrum-Link" href="https://github.com/adobe/spectrum-css/tree/main/components/button/metadata/mods.md">here</a>.
9
9
- name: Migration Guide
10
10
description: |
11
-
### Fill or Outline class required
11
+
### x/x/2024 - Version 13.0.0
12
+
#### Spectrum 2 release
13
+
Button now uses Spectrum 2 tokens and specifications. A few notable changes:
14
+
- The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`.
15
+
- The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`.
16
+
- The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`.
17
+
18
+
### Versions prior to 13.0.0
19
+
#### Fill or Outline class required
12
20
All buttons now require either the `.spectrum-Button--fill` or `.spectrum-Button--outline` class.
13
21
14
-
### Over background replaced by StaticWhite with Outline
22
+
#### Over background replaced by StaticWhite with Outline
15
23
Replace all `.spectrum-Button--overBackground` with `.spectrum-Button--staticWhite .spectrum-Button--outline`.
16
24
17
-
### Over background Quiet replaced by StaticWhite with Outline
25
+
#### Over background Quiet replaced by StaticWhite with Outline
18
26
Replace all `.spectrum-Button--overBackground .spectrum-Button--quiet` with `.spectrum-Button--staticWhite .spectrum-Button--outline`.
19
27
20
-
### Icon Only
28
+
#### Icon Only
21
29
Add the `.spectrum-Button--iconOnly` class to apply the correct styling when an icon is used without a label.
22
30
Provide an `aria-label` on the button itself when using this variant for accessibility.
23
31
24
-
### T-shirt sizing
32
+
#### T-shirt sizing
25
33
Button now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-Button--size*` class.
26
34
27
-
### Change workflow icon size
35
+
#### Change workflow icon size
28
36
29
37
Previously, all Buttons used `.spectrum-Icon--sizeS`. This has changed:
0 commit comments