feat(lib): Bump button v3.3.0, expand button v3.2.0 and navigation button v3.3.0#3713
Conversation
✅ Deploy Preview for boosted ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Updates OUDS Web’s button sizing API and migration tooling to reflect the latest upstream button changes (notably the deprecation of .btn-sm in favor of .btn-small), and documents the new sizing guidance.
Changes:
- Document
.btn-smallsizing and update migration notes to reflect.btn-sm→.btn-smalland.btn-lgremoval. - Update SCSS to support
.btn-smalland align internal component usage (e.g., quantity selector) with the new class name. - Update migrate replacement rules and snapshots to automatically migrate
btn-smtobtn-smalland reflect new CSS output.
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| site/src/content/docs/getting-started/migration-from-boosted.mdx | Updates migration guidance for button size classes. |
| site/src/content/docs/components/buttons.mdx | Adds a “Sizes” section documenting .btn-small with examples. |
| scss/_buttons.scss | Introduces the .btn-small variant via CSS custom property overrides. |
| scss/forms/_quantity-selector.scss | Aligns quantity selector styling with .btn-small instead of .btn-sm. |
| scss/_button-group.scss | Minor comment update reflecting removal of .btn-sm/.btn-lg. |
| scss/tests/snapshot-tests/snapshots/ouds-web.css | Updates CSS snapshot output for .btn-small and quantity selector selectors. |
| scss/tests/snapshot-tests/snapshots/ouds-web-bootstrap.css | Updates Bootstrap CSS snapshot output for .btn-small and quantity selector selectors. |
| packages/migrate/src/replacements/boosted.mjs | Changes migration behavior to replace btn-sm with btn-small (instead of warning). |
| packages/migrate/tests/source-boosted.html | Updates migration fixture input for the btn-sm case. |
| packages/migrate/tests/snapshots/migrated-boosted.html | Updates expected migrated output to use btn-small. |
| packages/migrate/src/migrate.spec.mjs | Updates expected warnings list to remove the btn-sm deprecation warning. |
Files not reviewed (2)
- scss/tests/snapshot-tests/snapshots/ouds-web-bootstrap.css: Generated file
- scss/tests/snapshot-tests/snapshots/ouds-web.css: Generated file
Comments suppressed due to low confidence (1)
site/src/content/docs/components/buttons.mdx:575
- This sprite reference is hardcoded to
/orange/docs/1.4/..., which will break on other brands and when the docs version changes. UsegetVersionedDocsPath()like the other button examples in this file.
<svg aria-hidden="true">
<use xlink:href="/orange/docs/1.4/assets/img/ouds-web-sprite.svg#heart-empty"/>
</svg>
|
Maybe do this here #3609 (comment) |
MaxLardenois
left a comment
There was a problem hiding this comment.
1 suggestion, 1 question
| } | ||
|
|
||
| // OUDS mod: no .btn-sm, nor .btn-lg | ||
| // OUDS mod: no .btn-sm, no .btn-lg |
There was a problem hiding this comment.
nor was ok here (but it's a detail)
|
|
||
| ### Sizes | ||
|
|
||
| Buttons are available in two sizes. Add `.btn-small` to have a smaller button. Default size is medium. |
There was a problem hiding this comment.
I do not get the "Default size is medium" as the Default is just default on the design...
|
|
||
| - <span class="tag tag-small tag-info"><span class="tag-status-icon"></span>Info</span> Button component has been updated to 3.3.0. Read more in the [button design changelog](https://r.orange.fr/r/S-ouds-doc-button_changelog). | ||
|
|
||
| - <span class="tag tag-small tag-info"><span class="tag-status-icon"></span>Info</span> Navigation button component has been updated to 3.3.0. Read more in the [button design changelog](https://r.orange.fr/r/S-ouds-doc-button_changelog). |
There was a problem hiding this comment.
| - <span class="tag tag-small tag-info"><span class="tag-status-icon"></span>Info</span> Navigation button component has been updated to 3.3.0. Read more in the [button design changelog](https://r.orange.fr/r/S-ouds-doc-button_changelog). | |
| - <span class="tag tag-small tag-info"><span class="tag-status-icon"></span>Info</span> Navigation button component has been updated to 3.3.0 with no outward changes. Read more in the [button design changelog](https://r.orange.fr/r/S-ouds-doc-button_changelog). |
https://deploy-preview-3713--boosted.netlify.app/orange/docs/components/buttons/#sizes