Skip to content

[OUDS] fix(buttons): Avoid shrinking icon in buttons with text and icon#3335

Merged
vprothais merged 2 commits intoouds/mainfrom
ouds/main-his-btn-icon-fix
Feb 6, 2026
Merged

[OUDS] fix(buttons): Avoid shrinking icon in buttons with text and icon#3335
vprothais merged 2 commits intoouds/mainfrom
ouds/main-his-btn-icon-fix

Conversation

@hannahiss
Copy link
Member

@hannahiss hannahiss commented Feb 3, 2026

Types of change

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

Related issues

Context & Motivation

When the screen is narrow and the text is long, in buttons with text plus icons, the icons may be compressed. This can be seen on the homepage in mobile mode, see image below.

image

Description

Add missing flex-shrink: 0 CSS property to avoid shrinking icon.
(NB: I checked the other components, they all seem ok, including link with icon which already has this property)

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

@boosted-bot boosted-bot moved this from In Progress / Draft to Need Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Feb 3, 2026
@hannahiss hannahiss changed the title Add missing flex-shrink: 0 to avoid shrinking icon Avoid shrinking icon in buttons with text and icon Feb 3, 2026
@hannahiss hannahiss changed the title Avoid shrinking icon in buttons with text and icon [OUDS] Avoid shrinking icon in buttons with text and icon Feb 3, 2026
@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 68f2f9b
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/6985bf2cd8ccea0008ae7489
😎 Deploy Preview https://deploy-preview-3335--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@hannahiss hannahiss changed the title [OUDS] Avoid shrinking icon in buttons with text and icon [OUDS] fix(buttons): Avoid shrinking icon in buttons with text and icon Feb 3, 2026
Copy link
Member

@louismaximepiton louismaximepiton left a comment

Choose a reason for hiding this comment

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

LGTM

@boosted-bot boosted-bot moved this from Need Dev Review to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Feb 4, 2026
@vprothais
Copy link
Collaborator

Thank you for the fix.
Don't we have also an issue regarding the width of the button ? Since the text wrap, it takes less width and the space between the icon and the text and on the right side is greater than the one defined. It is linked to the flex I think.

@vprothais vprothais merged commit 7d6debc into ouds/main Feb 6, 2026
11 checks passed
@vprothais vprothais deleted the ouds/main-his-btn-icon-fix branch February 6, 2026 10:30
@github-project-automation github-project-automation bot moved this from Need Lead Dev Review to Done in 🟣 [Orange-Boosted-Bootstrap] PRs Board Feb 6, 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.

3 participants