-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fixes focus indicator on input checkbox for Firefox #15612
Conversation
Thanks for making a pull request to jupyterlab! |
Thanks for submitting your first pull request! You are awesome! 🤗 |
Thank you! Can you confirm that it still works in the dialog; for example you can try clicking on the kernel name to show change kernel dialog, this is how it looks before: Based on the CI results it looks this will be reflected in the snapshots, let's get them updated: bot please update galata snapshots (again) |
.jp-Dialog-checkbox > input:focus-visible { | ||
outline: 1px solid var(--jp-input-active-border-color); | ||
outline-offset: 1px; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Specifically for checkboxes in dialogs)
for context, this styling is applied by packages/apputils/src/dialog.tsx
by using the label class as its initial selector.

But further down the execution create footer calls Styling.style(footer.node);
which adds jp-mod-styled
to the checkbox element. Deleting this styling inpackages/apputils/style/dialog.css
reduces code duplication.
bot please update galata snapshots (again?) |
Galata snapshots updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @alden-ilao, this looks good to me.
Sorry for back-and-forth with updating the snapshots - when preserving :focus-visible
approach updates to snapshots were not needed.
@meeseeksdev please backport to 4.0.x |
…ox (#15653) Co-authored-by: Alden Ilao <113391940+alden-ilao@users.noreply.github.com>
@krassowski Apologies for the late reply, I did not have access computer the past couple days, thank you for reviewing and making the changes! |
* Fixes not visible focus state on input checkbox for firefox * Update Playwright Snapshots * Use focus-visible * Revert snapshot changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
References
#14354
Code changes
User-facing changes
The user will now see outlines when hovering checkboxes on all platforms




Before (Firefox):
Before (Chrome):
After (Firefox):
After (Chrome):
Backwards-incompatible changes