Skip to content

fix: FIT-145: Taxonomy items not visible dark mode using arrow keys #7576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

ricardoantoniocm
Copy link
Contributor

@ricardoantoniocm ricardoantoniocm commented May 20, 2025

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:

  • Hovered Node Selector Updated: The CSS selector for hovered tree nodes was made more specific by adding .ant-select-tree-treenode, ensuring only the node wrappers inside tree nodes are targeted.
  • Active Node Styling Added: New styles were introduced for active tree nodes (.ant-select-tree-treenode-active), setting a distinct background color and text color to properly highlight the active node.
  • Empty Description Styling Added: A new style was added for .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:
image
image
image
image

After:
image
image
image
image

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:

  1. Log in as OWNER to LSE in Dark mode.
  2. Create a project and import some data.
  3. Open any task in Quick View.
  4. Click on the Taxonomy dropdown.
  5. Navigate through the taxonomy tree using the Arrow down keyboard button.
  6. Also, make a search for an element that does not exist to see the empty state.
  7. Switch to Light mode and go through steps 4-6.

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.

Copy link

netlify bot commented May 20, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 05789a9
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/682c8b0860becf0008bfd482

Copy link

netlify bot commented May 20, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 05789a9
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/682c8b082a0b890008f77507

Copy link

netlify bot commented May 20, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 05789a9
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/682c8b08ed772500082adddc
😎 Deploy Preview https://deploy-preview-7576--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the fix label May 20, 2025
@ricardoantoniocm ricardoantoniocm self-assigned this May 20, 2025
@ricardoantoniocm ricardoantoniocm marked this pull request as ready for review May 20, 2025 14:29
@ricardoantoniocm ricardoantoniocm merged commit ce41e2c into develop May 20, 2025
63 of 66 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-fit-145/taxonomy-items-not-visible-dark-mode-using-arrow-keys branch May 20, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants