Repository navigation
Fix auto-classification tag text unreadable in dark mode - #39760
Conversation
AutoClassificationTag did not apply tag-color-text to its label and icon, so the dark-mode lift rule never matched and the text stayed brand-700.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟢 Low riskAdding the color class to the auto-classification tag’s label and icon only changes dark-mode styling; executable behavior remains otherwise unchanged. Adds the VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Not backported to
|
…9763) AutoClassificationTag did not apply tag-color-text to its label and icon, so the dark-mode lift rule never matched and the text stayed brand-700. (cherry picked from commit 24e70d7) Co-authored-by: Rohit Jain <[email protected]>
Describe your changes:
In dark mode the auto-classification tag kept its dark brand-700 label and icon colour, which is hard to read on the dark background.
All the other tag chips (Classification, Glossary, Domain, Data Product, Metric) put
tag-color-texton their label and icon. The dark-mode rule inglobals.css(.dark-mode .tag-tinted .tag-color-text) lightens that class toward white.AutoClassificationTagleft the class off, so the rule never matched. This PR adds the class to its icon and label. Light mode looks the same as before.Type of change:
Tests:
Which test layer and why
Vitest unit test in core-components. The change is a class on a leaf component.
Unit tests
auto-classification-tag.test.tsx: checks that the label and icon carrytag-color-text. 13/13 pass.Manual testing performed
Checked the
Application/EntityTags → VariantsStorybook story in light and dark themes.Screenshots:
UI screen recording:
Not applicable: styling fix, see the screenshots above.
Checklist:
🤖 Generated with Claude Code