Skip to content

Fix trailing badge icon size#2375

Open
ganyicz wants to merge 1 commit intomainfrom
filip/fix-badge-icon-size
Open

Fix trailing badge icon size#2375
ganyicz wants to merge 1 commit intomainfrom
filip/fix-badge-icon-size

Conversation

@ganyicz
Copy link
Collaborator

@ganyicz ganyicz commented Feb 6, 2026

The scenario

Trailing icon on <flux:badge size="sm"> is bigger than the leading one.

<flux:badge size="sm" icon="document-text" icon:trailing="document-text">
    Small
</flux:badge>
SCR-20260206-olrk

The problem

The sm size is applied via **:data-flux-badge-icon:size-3, but this only matches the leading icon.

The solution

Move the size-3 override from the CSS selector into $iconClasses, which is already applied directly to both icons.

Screen.Recording.2026-02-06.at.16.26.02.mov

Fixes #2357

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.

The badge trailing icon is larger than the standard icon on badge size 'sm'.

1 participant