Refactor/stop hover css tokens#7405
Open
nehayadav827 wants to merge 2 commits into
Open
Conversation
Contributor
|
🧪 Jest Test Results ✅ All Jest tests passed! This PR is ready to merge. Coverage: Statements: 48.04% | Branches: 39.52% | Functions: 52.82% | Lines: 48.44% |
This was referenced May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR introduces CSS design tokens for stop icon and hover colors and migrates related toolbar/activity theme color reads away from the legacy
platformColorobject.It also updates the AI debugger Jest fixture to reflect the existing explicit-consent behavior so the full Jest suite passes on this branch.
No behavioral changes intended.
Changes
css/tokens.css
Added new theme-aware CSS custom properties:
--mb-stop-icon-color--mb-hover-colorfor:
css/themes.css
tokens.cssjs/toolbar.js
Replaced:
platformColor.stopIconcolorplatformColor.hoverColorwith CSS token lookups using
getComputedStyle().js/activity.js
Replaced all remaining:
platformColor.stopIconcolorreads with CSS token lookups.
js/widgets/tests/aidebugger.test.js
Updated AI debugger consent-flow tests to reflect the existing explicit-consent requirement before sending project data.
Validation
Verification
Confirmed that:
platformColor.stopIconcolororplatformColor.hoverColorreferences remainAutomated checks
npm testnpm run lintnpx prettier --checkAttached screenshots include:
platformColorreferencesPR Category
Issue
Partially addresses #6606