Repository navigation
Fix: replace removed --bui-bg-tint tokens in Table component (fixes #33292) - #33363
Conversation
…ackstage#33292) Root cause: The --bui-bg-tint-* CSS tokens were removed from the design system in favour of --bui-bg-neutral-* tokens, but Table.module.css was not updated during the migration, leaving row hover, selected, pressed, and disabled states with no visual effect. Fix: Replace --bui-bg-tint-hover/pressed/disabled with the equivalent --bui-bg-neutral-1-hover/pressed/disabled tokens, matching the migration mapping documented in the CHANGELOG. Signed-off-by: shivamtiwari3 <33183708+shivamtiwari3@users.noreply.github.com>
Changed Packages
|
There was a problem hiding this comment.
Pull request overview
This PR fixes a visual regression in the @backstage/ui Table component where row hover, selected, pressed, and disabled background states had no effect because they referenced removed --bui-bg-tint-* CSS tokens. The fix replaces them with the current --bui-bg-neutral-1-* token family, consistent with other interactive components like Button, ButtonLink, and ButtonIcon.
Changes:
- Replaced four removed
--bui-bg-tint-*CSS token references inTable.module.csswith their--bui-bg-neutral-1-*equivalents. - Added a changeset file describing the patch.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
packages/ui/src/components/Table/Table.module.css |
Replaced --bui-bg-tint-hover, --bui-bg-tint-pressed, and --bui-bg-tint-disabled with --bui-bg-neutral-1-hover, --bui-bg-neutral-1-pressed, and --bui-bg-neutral-1-disabled |
.changeset/fix-table-bui-bg-tint-tokens.md |
Changeset describing the patch for @backstage/ui |
cdedreuille
left a comment
There was a problem hiding this comment.
Thanks a lot 🙏 We will have to do a follow up to get our table row to adapt to any containers but as a first fix this is fine.
|
Thank you for contributing to Backstage! The changes in this pull request will be part of the |
Hey, I just made a Pull Request!
Fixes #33292.
The
Tablecomponent'sTableRowstates (hover, selected/pressed, disabled) were using--bui-bg-tint-hover,--bui-bg-tint-pressed, and--bui-bg-tint-disabledCSS tokens. These tokens were removed from the design system on 2026-01-30 in favour of the--bui-bg-neutral-*family, butTable.module.csswas missed during the migration. As a result, hovering table rows produces no visual feedback.Root Cause
In
packages/ui/src/components/Table/Table.module.css(lines 96, 100, 104, 114),TableRowstate styles referenced--bui-bg-tint-hover,--bui-bg-tint-pressed, and--bui-bg-tint-disabled. The CHANGELOG (packages/ui/CHANGELOG.md) documents the removal and the replacement mapping:--bui-bg-tint-hover→--bui-bg-neutral-on-surface-0-hover(later renamed--bui-bg-neutral-1-hover)--bui-bg-tint-pressed→--bui-bg-neutral-on-surface-0-pressed(later renamed--bui-bg-neutral-1-pressed)--bui-bg-tint-disabled→--bui-bg-neutral-on-surface-0-disabled(later renamed--bui-bg-neutral-1-disabled)Solution
Replace all four occurrences in
Table.module.csswith the current--bui-bg-neutral-1-*tokens, matching the pattern used by other interactive components (Button, ButtonLink, ButtonIcon, Accordion, etc.).Testing
This is a CSS-only change. Visual verification:
✔️ Checklist
Signed-off-byline in the message.