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

Revert "Adjust focus styling of textarea and input" #3998

Merged
merged 2 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chilly-spies-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Remove changes to focus outline to prevent double focus rings from showing
35 changes: 14 additions & 21 deletions src/__tests__/__snapshots__/Autocomplete.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ exports[`snapshots renders a custom empty state message 1`] = `
-ms-flex-align: stretch;
align-items: stretch;
min-height: 32px;
overflow: hidden;
}

.c0 input,
Expand Down Expand Up @@ -51,8 +50,8 @@ exports[`snapshots renders a custom empty state message 1`] = `

.c0:focus-within {
border-color: #0969da;
outline: 2px solid #0969da;
outline-offset: -1px;
outline: none;
box-shadow: inset 0 0 0 1px #0969da;
}

.c0 > textarea {
Expand Down Expand Up @@ -188,7 +187,6 @@ exports[`snapshots renders a loading state 1`] = `
-ms-flex-align: stretch;
align-items: stretch;
min-height: 32px;
overflow: hidden;
}

.c0 input,
Expand Down Expand Up @@ -218,8 +216,8 @@ exports[`snapshots renders a loading state 1`] = `

.c0:focus-within {
border-color: #0969da;
outline: 2px solid #0969da;
outline-offset: -1px;
outline: none;
box-shadow: inset 0 0 0 1px #0969da;
}

.c0 > textarea {
Expand Down Expand Up @@ -390,7 +388,6 @@ exports[`snapshots renders a menu that contains an item to add to the menu 1`] =
-ms-flex-align: stretch;
align-items: stretch;
min-height: 32px;
overflow: hidden;
}

.c0 input,
Expand Down Expand Up @@ -420,8 +417,8 @@ exports[`snapshots renders a menu that contains an item to add to the menu 1`] =

.c0:focus-within {
border-color: #0969da;
outline: 2px solid #0969da;
outline-offset: -1px;
outline: none;
box-shadow: inset 0 0 0 1px #0969da;
}

.c0 > textarea {
Expand Down Expand Up @@ -1168,7 +1165,6 @@ exports[`snapshots renders a multiselect input 1`] = `
-ms-flex-align: stretch;
align-items: stretch;
min-height: 32px;
overflow: hidden;
}

.c0 input,
Expand Down Expand Up @@ -1198,8 +1194,8 @@ exports[`snapshots renders a multiselect input 1`] = `

.c0:focus-within {
border-color: #0969da;
outline: 2px solid #0969da;
outline-offset: -1px;
outline: none;
box-shadow: inset 0 0 0 1px #0969da;
}

.c0 > textarea {
Expand Down Expand Up @@ -1833,7 +1829,6 @@ exports[`snapshots renders a multiselect input with selected menu items 1`] = `
-ms-flex-align: stretch;
align-items: stretch;
min-height: 32px;
overflow: hidden;
}

.c0 input,
Expand Down Expand Up @@ -1863,8 +1858,8 @@ exports[`snapshots renders a multiselect input with selected menu items 1`] = `

.c0:focus-within {
border-color: #0969da;
outline: 2px solid #0969da;
outline-offset: -1px;
outline: none;
box-shadow: inset 0 0 0 1px #0969da;
}

.c0 > textarea {
Expand Down Expand Up @@ -2646,7 +2641,6 @@ exports[`snapshots renders a single select input 1`] = `
-ms-flex-align: stretch;
align-items: stretch;
min-height: 32px;
overflow: hidden;
}

.c0 input,
Expand Down Expand Up @@ -2676,8 +2670,8 @@ exports[`snapshots renders a single select input 1`] = `

.c0:focus-within {
border-color: #0969da;
outline: 2px solid #0969da;
outline-offset: -1px;
outline: none;
box-shadow: inset 0 0 0 1px #0969da;
}

.c0 > textarea {
Expand Down Expand Up @@ -3670,7 +3664,6 @@ exports[`snapshots renders with an input value 1`] = `
-ms-flex-align: stretch;
align-items: stretch;
min-height: 32px;
overflow: hidden;
}

.c0 input,
Expand Down Expand Up @@ -3700,8 +3693,8 @@ exports[`snapshots renders with an input value 1`] = `

.c0:focus-within {
border-color: #0969da;
outline: 2px solid #0969da;
outline-offset: -1px;
outline: none;
box-shadow: inset 0 0 0 1px #0969da;
}

.c0 > textarea {
Expand Down
Loading
Loading