Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ProgressBar
: Simplify default width
implementation and make it mo…
…re easily overridable (WordPress#61976) * Remove "experimental" designation for `ProgressBar` * Add optional width prop to override/set the progress bar track container * Revert "Add optional width prop to override/set the progress bar track container" This reverts commit b1fe7cd. * Keep an unconstrained width by default, while allowing consumers to override it with CSS * Revert "Keep an unconstrained width by default, while allowing consumers to override it with CSS" This reverts commit 64c72e2. * Make the component public * Update consumers to import the public component * Expose docs for the now public ProgressBar component * Update CHANGELOG * Run docs:build after docs/manifest.js change * Remove remaining private usage of ProgressBar * Small formatting fix in the changelog * Add basic docs to the README * Add jsdoc * Formatting fix in README jsx block Co-authored-by: Marin Atanasov <[email protected]> * Another formatting fix in README jsx block Co-authored-by: Marin Atanasov <[email protected]> * YAFF (yet another formatting fix) in the README jsx Co-authored-by: Marin Atanasov <[email protected]> * Improve wording in descripton of the `value` prop in the README Co-authored-by: Marin Atanasov <[email protected]> * YAFF: Missing semicolon in README jsx Co-authored-by: Marin Atanasov <[email protected]> * YAFF: missing semicolon in jsx block in README Co-authored-by: Marin Atanasov <[email protected]> * YAFF: missing semicolon in jsx block in README Co-authored-by: Marin Atanasov <[email protected]> * YAFF: use tab instead of spaces in jsx code block in README Co-authored-by: Marin Atanasov <[email protected]> * Move export out of the HOC export section * Fix CHANGELOG: Move entry to the existing enhacements section * Spacing fix Co-authored-by: Marin Atanasov <[email protected]> * Sort import alphabetically * Allow `ProgressBar` to have unconstrained width, which is disabled by default It has a default `max-width` of 160px, but allows consumers to explicitely disable it so that it expands to fit the parent's width by default. Consumers can then optionally set another width the way they see fit via a custom `className`. * Revert "Allow `ProgressBar` to have unconstrained width, which is disabled by default" This reverts commit 7a00da3. * Update docs and add story to illustrate a custom width * Update CHANGELOG * Simplify description in the story Co-authored-by: Marin Atanasov <[email protected]> * Improve jsdoc in story, do not encourage more customization than needed * Inherit the second story from the main template --------- Co-authored-by: fullofcaffeine <[email protected]> Co-authored-by: tyxla <[email protected]> Co-authored-by: mirka <[email protected]> Co-authored-by: DaniGuardiola <[email protected]> Co-authored-by: jasmussen <[email protected]>
- Loading branch information