fix: FIT-145: Taxonomy items not visible dark mode using arrow keys #7576
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reason for change
This PR addresses an issue where taxonomy items were not visible in Dark mode when navigating the taxonomy tree using arrow key hotkeys.
The changes primarily involve updates to
Taxonomy.scss
to improve the visual feedback for active and hovered items:.ant-select-tree-treenode
, ensuring only the node wrappers inside tree nodes are targeted..ant-select-tree-treenode-active
), setting a distinct background color and text color to properly highlight the active node..ant-empty-description
, setting its color to a subtler neutral content color for consistency.These modifications ensure that the active taxonomy item is clearly visible in Dark mode, resolving the reported accessibility and usability issue.
Screenshots
Before:




After:




Rollout strategy
This change does not require a specific rollout strategy beyond a standard deployment. It's a CSS fix that directly addresses a visual bug and does not introduce any new features or breaking changes.
Testing
The fix has been verified by following the steps to reproduce the original bug:
Risks
No significant risks are anticipated with this change. It is a targeted CSS adjustment and does not impact core functionality, security, or performance.
Reviewer notes
Please pay attention to the changes in
Taxonomy.scss
, specifically the new styles for.ant-select-tree-treenode-active
and the more specific selector for hovered nodes. Ensure the visual changes align with expectations for Dark mode visibility.General notes
This PR directly addresses the reported bug and improves the user experience for users navigating taxonomy trees in Dark mode. The changes are confined to styling and do not alter any underlying logic.