Skip to content

feat: add Label references to utilities and docs#3621

Merged
louismaximepiton merged 11 commits into
ouds/mainfrom
ouds/main-ad-label-font-sizes
Jul 7, 2026
Merged

feat: add Label references to utilities and docs#3621
louismaximepiton merged 11 commits into
ouds/mainfrom
ouds/main-ad-label-font-sizes

Conversation

@duvalale

@duvalale duvalale commented Jun 25, 2026

Copy link
Copy Markdown
Member

Types of change

  • Non-breaking change
  • Breaking change (fix or feature that would change existing functionality and usage)

Related issues

Closes #3610

Context & Motivation

Description

Add label-{small|medium|large|xlarge} references to classes fs-* and to Typography and Text docs.

Checklists

  • I have read the contributing guidelines
  • My change follows the developer guide
  • My change pass all tests
  • My change is compatible with a responsive display
  • I have added tests (Javascript unit test or visual) to cover my changes
  • My change introduces changes to the documentation that I have updated accordingly
    • Title and DOM structure is correct
    • Links have been updated (title changes impact links)
    • CSS for the documentation
  • I have checked all states and combinations of the component with my change
  • I have checked all the impacts for the other components and core behavior (grid, reboot, utilities)

Checklist (for Core Team only)

  • The changes need to be in the migration guide
  • The changes are well displayed in Storybook (be careful if example order has changed for DSM)
  • The changes are compatible with RTL
  • Manually test browser compatibility with BrowserStack (Chrome 120, Firefox 121, Edge 120, Safari 15.6, iOS Safari, Chrome & Firefox on Android)

Progression (for Core Team only)

Live previews

@netlify

netlify Bot commented Jun 25, 2026

Copy link
Copy Markdown

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit df9ed4b
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/6a4cba2e1070eb0008bf7a11
😎 Deploy Preview https://deploy-preview-3621--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Comment thread packages/sosh/scss/tokens/_semantic.scss Outdated
Comment thread packages/orange-compact/scss/tokens/_semantic.scss Outdated
Comment thread packages/orange/scss/tokens/_semantic.scss Outdated

@louismaximepiton louismaximepiton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changes in */_semantics.scss files aren't needed since the variables are already defined in the files. In general, these files shouldn't be changed at all, but with tokenator automated PRs.
.bundlewatch.json needs to be updated as well for the CI to pass correctly.

Comment thread site/src/content/docs/getting-started/migration-from-boosted.mdx
Comment thread site/src/content/docs/getting-started/migration.mdx
Comment thread site/src/content/docs/foundation/typography.mdx Outdated
@boosted-bot boosted-bot moved this from Need Dev Review to Dev Review In Progress in 🟣 [Orange-Boosted-Bootstrap] PRs Board Jun 26, 2026
@boosted-bot boosted-bot moved this from Dev Review In Progress to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Jun 30, 2026
Comment thread scss/tests/customize/_ouds-web-bootstrap-utilities.test.scss
Comment thread site/src/content/docs/utilities/text.mdx
@boosted-bot boosted-bot moved this from Need Lead Dev Review to Dev Review In Progress in 🟣 [Orange-Boosted-Bootstrap] PRs Board Jun 30, 2026

@MaxLardenois MaxLardenois left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little suggestion here

Comment thread site/src/content/docs/getting-started/migration.mdx Outdated
@MaxLardenois MaxLardenois dismissed vprothais’s stale review July 3, 2026 13:33

work done, vincent on holidays

@louismaximepiton louismaximepiton linked an issue Jul 6, 2026 that may be closed by this pull request
2 tasks

@louismaximepiton louismaximepiton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some mixin that can be replaced such as in alerts where we define the max-width and the get font size, don't know if there are more

Comment thread scss/mixins/_fonts.scss
@mixin get-font-size($font-size-ref: "display-large") {
@if str-slice($font-size-ref, 1, 5) != "label" and str-slice($font-size-ref, 1, 4) != "code" {
max-width: var(--#{$prefix}font-max-width-#{$font-size-ref});
@mixin get-font-size($font-size-ref: "display-large", $label-with-max-width: false) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big fan of getting only label with the parameter, but le'ts find out later !

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, I think I'd go with max-width by default and call when I don't need max-width

@MaxLardenois MaxLardenois Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand your points
Maybe we should determine if the max width should be default or not on labels

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My point here is to rather have get-font-size($font-size-ref: "display-large", $apply-max-width: true) and change the calls wherever not applied. I'll try something this afternoon to see the changes in one commit, then we'll decide

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried something, tell me i it should b reverted or not

@MaxLardenois MaxLardenois Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so I thought about it and imo we should not do this, at least in this PR, because:

  • it introduces an (albeit small) breaking change not absolutely necessary to close the issue
  • it necessitates to change a lot of files
  • the API is a little deceptive (@include get-font-size('code-something', true) do not add the max-width even though the parameter looks like it would work

I think it would be worthwhile to merge this as it was into v1.4 and create another issue/PR with your commit to explore a future API change on get-font-size.

@louismaximepiton louismaximepiton enabled auto-merge (squash) July 7, 2026 08:37
@louismaximepiton louismaximepiton merged commit cbcb866 into ouds/main Jul 7, 2026
14 checks passed
@louismaximepiton louismaximepiton deleted the ouds/main-ad-label-font-sizes branch July 7, 2026 08:39
@github-project-automation github-project-automation Bot moved this from Dev Review In Progress to Done in 🟣 [Orange-Boosted-Bootstrap] PRs Board Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

[OUDS] Add the references "Label"

6 participants