Skip to content

fix: OPTIC-2144: Toggle interpolation button is not optimized dark mode #7485

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

Reason for change:

The "Toggle Interpolation" button in Label Studio was not optimized for Dark Mode. When in the OFF state, the button appeared as a solid black shape, making it difficult to discern its state and functionality. This PR addresses this issue by ensuring the button is correctly styled for both ON and OFF states in both Light and Dark Mode.

Solution:

The fix involves changing the button's color from a fixed black value to currentColor. This allows the button's color to be determined by the surrounding context (e.g., the text color), ensuring it adapts correctly to the active color scheme (Light or Dark Mode).

Screenshots:

Before:
image

After:
image

Testing:

The following steps were used to verify the fix:

  1. Verified that the "Toggle Interpolation" button is correctly displayed in both ON and OFF states in Dark Mode.
  2. Verified that the "Toggle Interpolation" button is correctly displayed in both ON and OFF states in Light Mode.
  3. Verified the button's appearance within the Label Studio application, specifically in the video object tracking template.

Risks:

This change is limited to the styling of a single button. There is minimal risk of introducing regressions.

Reviewer notes:

Please pay close attention to the button's appearance in both Light and Dark Mode, and in both ON and OFF states.

General notes:

This fix ensures a better user experience by providing consistent and clear visual feedback for the "Toggle Interpolation" button, regardless of the user's chosen color scheme.

Copy link

netlify bot commented May 7, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 9242e86
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/681e216ab6d49f0008c92865

Copy link

netlify bot commented May 7, 2025

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

Name Link
🔨 Latest commit 9242e86
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/681e216aea7398000889a7b0

Copy link

netlify bot commented May 7, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 9242e86
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-storybook/deploys/681e216a8e2bed0008b7b977
😎 Deploy Preview https://deploy-preview-7485--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 site configuration.

@ricardoantoniocm ricardoantoniocm changed the title Fb optic 2144/toggle interpolation button is not optimized dark mode fix: OPTIC-2144: Toggle interpolation button is not optimized dark mode May 7, 2025
@AndrejOros
Copy link
Contributor

AndrejOros commented May 8, 2025

/fm sync

Workflow run

@ricardoantoniocm
Copy link
Contributor Author

ricardoantoniocm commented May 8, 2025

/fm sync

Workflow run

@ricardoantoniocm
Copy link
Contributor Author

ricardoantoniocm commented May 9, 2025

/git merge

Workflow run
Successfully merged: rename web/libs/datamanager/src/components/App/{App.jsx => App.tsx} (73%)

@ricardoantoniocm
Copy link
Contributor Author

ricardoantoniocm commented May 9, 2025

/git merge

Workflow run
Successfully merged: 2 files changed, 2 insertions(+), 2 deletions(-)

@ricardoantoniocm ricardoantoniocm merged commit d334bbb into develop May 9, 2025
38 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-optic-2144/toggle-interpolation-button-is-not-optimized-dark-mode branch May 9, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants