Skip to content

fix(tab-group): ensure indicator is visible with 1px track-width#2540

Open
Br1an67 wants to merge 1 commit intoshoelace-style:nextfrom
Br1an67:fix/issue-2415-tab-indicator-track-width
Open

fix(tab-group): ensure indicator is visible with 1px track-width#2540
Br1an67 wants to merge 1 commit intoshoelace-style:nextfrom
Br1an67:fix/issue-2415-tab-indicator-track-width

Conversation

@Br1an67
Copy link

@Br1an67 Br1an67 commented Mar 8, 2026

Fixes #2415

Summary

The tab group indicator was invisible when --track-width was set to 1px. This was caused by box-sizing: border-box (inherited from component styles) which drew the border inside the indicator element's 0-height content area, making it effectively hidden.

Changes

  • Added box-sizing: content-box to .tab-group__indicator in src/components/tab-group/tab-group.styles.ts to ensure the border extends outside the content area and remains visible regardless of track-width value.

Testing

Verified that the fix allows the indicator border to render properly when --track-width is set to 1px (or any value), as the border now extends beyond the element's content box rather than being clipped inside it.

git diff --stat HEAD~1
 src/components/tab-group/tab-group.styles.ts | 1 +
 1 file changed, 1 insertion(+)

The indicator was invisible when --track-width was set to 1px because
box-sizing: border-box (inherited from component styles) caused the
border to be drawn inside the element's 0-height content area. Adding
box-sizing: content-box to the indicator ensures the border extends
outside the content area and remains visible.
@vercel
Copy link

vercel bot commented Mar 8, 2026

@Br1an67 is attempting to deploy a commit to the Font Awesome Team on Vercel.

A member of the Team first needs to authorize it.

@claviska
Copy link
Member

claviska commented Mar 8, 2026

Hi, thanks for the PR. Unfortunately, Shoelace is in maintenance mode now that Web Awesome ("Shoelace 3") is available.

I believe this might have been fixed upstream already, but if you notice it's still an issue in WA we'll be more than happy to accept a PR!

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.

indicator color of tab group is missing when track-width is 1px

2 participants