-
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.
docs(progressbar): adds missing stories, tests, controls
- adds relevant S2 controls to template - expands test coverage to include without label and without value label - adds stories and documentation to docs page - adds additional migration guide context to CHANGELOG
- Loading branch information
1 parent
5ec94af
commit a15a7bb
Showing
4 changed files
with
182 additions
and
5 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 |
---|---|---|
|
@@ -1320,10 +1320,18 @@ Co-authored-by: Bernhard Schmidt <[email protected] | |
|
||
- use Field label instead of custom classes ([dd9d369](https://github.com/adobe/spectrum-css/commit/dd9d369)) | ||
|
||
### Label and percentage now use Field Label | ||
|
||
Progress bar now uses Field label for its label and percentage. Add the appropriately sized Field label to match the t-shirt size of the Progress bar. | ||
|
||
### ✨ Features | ||
|
||
- t-shirt sizing for ProgressBar, update notice classes, closes [#955](https://github.com/adobe/spectrum-css/issues/955) ([440ce85](https://github.com/adobe/spectrum-css/commit/440ce85)) | ||
|
||
#### T-shirt sizing | ||
|
||
Progress bar now supports t-shirt sizing and requires that you specify the size of button by adding a `.spectrum-ProgressBar--size*` class. | ||
|
||
### 🐛 Bug fixes | ||
|
||
- allow customizing ProgressBar width, fixes [#1064](https://github.com/adobe/spectrum-css/issues/1064) ([5b39f67](https://github.com/adobe/spectrum-css/commit/5b39f67)) | ||
|
@@ -1335,9 +1343,18 @@ Co-authored-by: Bernhard Schmidt <[email protected] | |
### 🛑 BREAKING CHANGES | ||
|
||
- Progress bar now uses Field label | ||
- .spectrum-ProgressBar--large renamed to .spectrum-ProgressBar--sizeM, .spectrum-ProgressBar--large renamed to .spectrum-ProgressBar--sizeS is required for previous | ||
- .spectrum-ProgressBar--large renamed to .spectrum-ProgressBar--sizeM, .spectrum-ProgressBar--small renamed to .spectrum-ProgressBar--sizeS is required for previous | ||
- ProgressBar .is-warning renamed to .is-notice, .is-critical renamed to .is-negative | ||
|
||
#### Size classnames changed | ||
|
||
Previous size classnames map as follows: | ||
|
||
| Previous size classname | New size classname | | ||
| ------------------------------ | ------------------------------ | | ||
| `.spectrum-ProgressBar--small` | `.spectrum-ProgressBar--sizeS` | | ||
| `.spectrum-ProgressBar--large` | `.spectrum-ProgressBar--sizeM` | | ||
|
||
<a name="1.0.0-beta.2"></a> | ||
|
||
## 1.0.0-beta.2 | ||
|
@@ -1356,6 +1373,12 @@ Co-authored-by: Bernhard Schmidt <[email protected] | |
|
||
- removed more deprecations ([70dd116](https://github.com/adobe/spectrum-css/commit/70dd116)) | ||
|
||
### 🛑 BREAKING CHANGES | ||
|
||
#### Component renamed | ||
|
||
Bar loader is now known as Progress bar. Replace all .spectrum-BarLoader* classnames with .spectrum-ProgressBar*. | ||
|
||
<a name="3.0.0-beta.2"></a> | ||
|
||
## 3.0.0-beta.2 | ||
|
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
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
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