-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
"@spectrum-css/button": major | ||
--- | ||
|
||
#### Spectrum 2 migration | ||
Button now uses Spectrum 2 tokens and specifications, which includes many color changes to all variants. A few other notable changes: | ||
- Outline buttons are no longer available in accent and negative options — use the filled variant instead. | ||
- Medium size is now the default. The class `.spectrum-Button--sizeM` is now unnecessary for this size, and has been removed. | ||
- The `.spectrum-Button--fill` class is no longer needed and has been removed. | ||
|
||
The following `--mod` custom properties have been renamed: | ||
- `--mod-line-height-100` has been renamed to `--mod-button-line-height` | ||
- `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family` | ||
- `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration` | ||
- `--mod-bold-font-weight` has been renamed to `--mod-button-font-weight` |