Skip to content
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

fix(ui-mode): Watch mode button doesn't show active when test selected #34581

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

GeneratorX16
Copy link
Contributor

@GeneratorX16 GeneratorX16 commented Feb 1, 2025

description: The watch mode button was not showing as highlighted when a test in the tree view was focused and the watch icon was being clicked. Handled this issue for both, light mode and dark mode visibility.
#34434
Light Mode (Selected/Focused):
selected-light
Dark Mode (Selected/Focused):
dark-watch

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@GeneratorX16 GeneratorX16 changed the title fix(ui-mode): Watch mode button doesn't show active when test selected fix(ui-mode): Watch mode button doesn't show active when test selected (BUG #34434) Feb 1, 2025
@GeneratorX16 GeneratorX16 changed the title fix(ui-mode): Watch mode button doesn't show active when test selected (BUG #34434) fix(ui-mode): Watch mode button doesn't show active when test selected Feb 1, 2025
@agg23
Copy link
Contributor

agg23 commented Feb 3, 2025

Thank you for the PR. While this is an improvement, this does not pass contrast accessibility, so it technically has not fixed the problem.

Instead of attempting to find a color that works, the correct solution is to draw a box around the active watch icon and keep the watch icon as always white. This isn't the best example screenshot, but you can see how the button is handled.

Screenshot 2025-02-03 at 11 43 53 AM

This comment has been minimized.

@GeneratorX16
Copy link
Contributor Author

GeneratorX16 commented Feb 8, 2025

I have updated the selected icon with the following way:
Dark Mode Hilighted and Selected:
dark-highlight-watch
Dark Mode Highlighted but not selected:
dark-hilight-no-watch

Light Mode Highlighted and Selected:
light-mode-highlight-watch
Light Mode Highlighted but not selected:
light-mode-hilight-no-watch

This comment has been minimized.

description: The watch mode button was not showing as highlighted when a test in the tree view was focused and the watch icon was being clicked. Handled this issue for both, light moide and dark mode visibility

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Feb 8, 2025

Test results for "tests 1"

1 failed
❌ [webkit-library] › tests/library/inspector/title.spec.ts:35:5 › should update primary page URL when original primary closes @webkit-ubuntu-22.04-node18

12 flaky ⚠️ [firefox-page] › tests/page/page-evaluate.spec.ts:403:3 › should throw for too deep reference chain @firefox-ubuntu-22.04-node18
⚠️ [playwright-test] › tests/ui-mode-test-ct.spec.ts:59:5 › should run component tests after editing test @ubuntu-latest-node18-1
⚠️ [chromium] › tests/headerView.spec.tsx:43:1 › should toggle filters @web-components-html-reporter
⚠️ [webkit-library] › tests/library/browsertype-connect.spec.ts:610:5 › launchServer › should save har @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/proxy.spec.ts:93:11 › should proxy local network requests › by default › loopback address @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/proxy.spec.ts:238:3 › should use socks proxy in second page @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/trace-viewer.spec.ts:109:1 › should show tracing.group in the action list with location @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/trace-viewer.spec.ts:1462:1 › should show similar actions from library-only trace @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › tests/library/trace-viewer.spec.ts:1483:1 › should show correct request start time @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-leaks.spec.ts:82:5 › click should not leak @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-leaks.spec.ts:107:5 › fill should not leak @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › tests/page/page-leaks.spec.ts:161:5 › waitFor should not leak @webkit-ubuntu-22.04-node18

37826 passed, 655 skipped
✔️✔️✔️

Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants