Skip to content

Commit

Permalink
Fixes focus indicator on input checkbox for Firefox (#15612)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
3 people committed Jan 17, 2024
1 parent 0922e74 commit aee0bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/apputils/style/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ button.jp-Dialog-close-button {
padding-right: 5px;
}

.jp-Dialog-checkbox > input:focus-visible {
outline: 1px solid var(--jp-input-active-border-color);
outline-offset: 1px;
}

.jp-Dialog-spacer {
flex: 1 1 auto;
}
Expand Down
5 changes: 5 additions & 0 deletions packages/ui-components/style/styling.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ input.jp-mod-styled:focus {
box-shadow: inset 0 0 4px var(--md-blue-300);
}

input[type='checkbox'].jp-mod-styled:focus-visible {
outline: var(--jp-border-width) solid var(--jp-input-active-border-color);
outline-offset: 1px;
}

.jp-select-wrapper {
display: flex;
position: relative;
Expand Down

0 comments on commit aee0bac

Please sign in to comment.