-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix focus-visible outlines #7960
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
base: master
Are you sure you want to change the base?
Changes from all commits
a121c6c
3abe7c5
829c586
b0bfd6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,7 +142,6 @@ const DeployServiceMeshWrapper = styled.div` | |
| height: 10px; | ||
| border-radius: 5px; | ||
| background: #d3d3d3; | ||
| outline: none; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the |
||
| opacity: 0.7; | ||
| -webkit-transition: .2s; | ||
| transition: opacity .2s; | ||
|
|
@@ -327,4 +326,4 @@ const DeployServiceMeshWrapper = styled.div` | |
| } | ||
| `; | ||
|
|
||
| export default DeployServiceMeshWrapper; | ||
| export default DeployServiceMeshWrapper; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -778,7 +778,6 @@ const NavigationWrap = styled.header` | |
| .toggle { | ||
| --size: 1.5rem; | ||
| appearance: none; | ||
| outline: none; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same pattern — |
||
| cursor: pointer; | ||
| width: var(--size); | ||
| height: var(--size); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,7 +138,6 @@ const SoSpecialWrapper = styled.div` | |
| background-color:${(props) => props.theme.body}; | ||
| color:black; | ||
| height: 30rem; | ||
| outline:none; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This removal is intentional. GlobalStyle already applies outline: none to *:focus:not(:focus-visible) and adds the themed 3px outline to *:focus-visible. Since GlobalStyle is mounted in Layout, adding the same rule locally would duplicate the behavior. Keyboard focus remains visible while non-keyboard focus does not show an outline. |
||
| border:none; | ||
| transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); | ||
| } | ||
|
|
||
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.
Should this follow the same
&:focus:not(:focus-visible)pattern as the other files here? Right now it's just deleted, so the default outline will show on mouse click too, and stack with thebox-shadowoninput:focusbelow.