Skip to content

chore(lib): removed defined-only once css custom props from components - #3947

Open
duvalale wants to merge 1 commit into
mainfrom
main-ad-custom-prop-cleaning
Open

duvalale wants to merge 1 commit into
mainfrom
main-ad-custom-prop-cleaning

Conversation

@duvalale

@duvalale duvalale commented Oct 28, 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 #3593

Description

Removed custom props being defined only once in favor of using their value.

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 update 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 Oct 28, 2026

Copy link
Copy Markdown

✅ Deploy Preview for boosted ready!

Name Link
🔨 Latest commit d1f764a
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/6ae21bf2b436fd31ff1fac16
😎 Deploy Preview https://deploy-preview-3947--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.

@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.

I think we should not modify dropdown, footer and table as those are draft components coming from Boosted. We will circle back to it when we have a real implementation

I cannot do a Copilot review but I asked an agent if there was other custom props we could remove and here is what it output

-------- LLM output ----
Strongest candidates

_text-input.scss:23: --text-input-border-width-focus is declared but never read. It can be removed outright.
_tags.scss:19: --tag-warning-external-icon only aliases --alert-warning-icon; the two uses can reference the alert variable directly.
_text-input.scss:703: --text-input-message-margin-top is a fixed token used for helper/error margins. Those uses could take the Sass token directly.
_control-item.scss:190: --checkbox-check-icon is a fixed alias to $checkbox-selected-icon. Its two mask uses could use the Sass icon directly, if per-control runtime icon overrides aren’t intended.
Possible, but documented customization hooks

_breadcrumb.scss:6: --breadcrumb-item-gap is assigned once from a fixed token and never changed internally.
In _text-input.scss:25, the fixed-token properties text-input-padding-x/y, text-input-icon-size, text-input-trailing-action-, and text-input-column-gap have no internal overrides. They could use Sass values directly, but they’re inside the documented text-input CSS-variable blocks, so removing them would reduce the documented runtime customization API.

Comment thread scss/_breadcrumb.scss
content: "";
background-color: currentcolor;
mask-image: var(--#{$prefix}breadcrumb-divider);
mask-image: #{escape-svg($breadcrumb-divider-icon) "/* rtl:"escape-svg($breadcrumb-divider-flipped) "*/"};

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 should remove the escape-svg and the RTL stuff as it will be done on its own later on.
We should use directly the value of $breadcrumb-divider as it is a Bootstrap variable.

Comment thread scss/_breadcrumb.scss
height: $ouds-breadcrumb-size-icon;
margin-left: var(--#{$prefix}breadcrumb-item-gap);
color: var(--#{$prefix}breadcrumb-divider-color);
color: $breadcrumb-divider-color;

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 should use the value of $breadcrumb-divider-color as it is a bootstrap variable

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unchanging custom props in components in favor of Scss variables

2 participants