Skip to content

feat: add Label references to utilities and docs#3621

Open
duvalale wants to merge 4 commits into
ouds/mainfrom
ouds/main-ad-label-font-sizes
Open

feat: add Label references to utilities and docs#3621
duvalale wants to merge 4 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 34fd339
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/6a42205b0d5b51000844dd9d
😎 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

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

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
/* rtl:end:remove */

.fs-lxl {
font-size: var(--bs-font-size-label-xlarge);

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.

We decided to not generate a max-width property for label ref since it was often not needed in components. Therefore get-font-size mixin doesn't generate the max-width for this ref. As a result we don't have it either in these helpers. But I think that it should be present in this case for this usage.

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.

There is a section at the end of https://deploy-preview-3621--boosted.netlify.app/orange/docs/1.3/foundation/typography/#text-style-for-custom-components explaining how to use label typography references in custom component. This section could be removed since there is now a helper that could be used. The documentation of this mixin is still relevant but it could be explained later in a page we want to create about all useful mixin for creating components.

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.

Issue already open #3423

@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 on lines +60 to +61
- <span class="tag tag-small tag-positive"><span class="tag-status-icon"></span>New</span> Labels have been added to font size text utilities : `.fs-lxl`, `.fs-ll`, `.fs-lm`, `.fs-ls` are now available.
See [Regular Texts]([[docsref:foundation/typography#regular-texts]]) for more details.

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.

Just to have the same phrasing as the others

Suggested change
- <span class="tag tag-small tag-positive"><span class="tag-status-icon"></span>New</span> Labels have been added to font size text utilities : `.fs-lxl`, `.fs-ll`, `.fs-lm`, `.fs-ls` are now available.
See [Regular Texts]([[docsref:foundation/typography#regular-texts]]) for more details.
- <span class="tag tag-small tag-positive"><span class="tag-status-icon"></span>New</span> Labels have been added to font size text utilities : `.fs-lxl`, `.fs-ll`, `.fs-lm`, `.fs-ls` are now available. Read more in our [typography page]([[docsref:foundation/typography#regular-texts]]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Dev Review In Progress

Development

Successfully merging this pull request may close these issues.

6 participants