Skip to content

Commit

Permalink
Merge branch 'main' into use-toast-for-confirmation-messages
Browse files Browse the repository at this point in the history
  • Loading branch information
staxly[bot] authored Jul 16, 2024
2 parents 2ba7966 + 4142fc1 commit 2f41089
Show file tree
Hide file tree
Showing 13 changed files with 90 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ const Button = styled(ButtonHoc)`
border: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
&:focus {
outline: solid ${theme.color.white};
box-shadow: inset 0 0 0 0.3rem ${theme.color.black};
}
`}
${(props) => props.variant === 'secondary' && `
${applyColor(theme.color.secondary.lightGray)}
Expand Down
5 changes: 5 additions & 0 deletions src/app/components/__snapshots__/Button.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ exports[`Button matches snapshot - primary 1`] = `
background-color: ,#b03808,;
}
.c0:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
<button
className="c0"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ exports[`LabsCTA renders cta when selector is true 1`] = `
background-color: ,#b03808,;
}
.c9:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
@media screen and (max-width:50em) {
.c0 {
background-position: center center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ exports[`HighlightDeleteWrapper match snapshot when editing is set to true 1`] =
background-color: ,#b03808,;
}
.c3:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c4 {
display: -webkit-box;
display: -webkit-flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ exports[`HighlightDeleteWrapper match snapshot 1`] = `
background-color: ,#b03808,;
}
.c2:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c3 {
display: -webkit-box;
display: -webkit-flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ exports[`Confirmation matches snapshot no selection 1`] = `
background-color: ,#b03808,;
}
.c2:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c3 {
display: -webkit-box;
display: -webkit-flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ exports[`ConfirmationModal matches snapshot 1`] = `
background-color: ,#b03808,;
}
.c9:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c10 {
display: -webkit-box;
display: -webkit-flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ exports[`EditCard matches snapshot when editing 1`] = `
background-color: ,#b03808,;
}
.c3:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c4 {
display: -webkit-box;
display: -webkit-flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ exports[`EmptyScreen for practice questions renders properly and dispatches acti
background-color: ,#b03808,;
}
.c7:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c2 {
max-width: 38rem;
overflow: initial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ exports[`FinalScreen for practice questions renders properly and dispatches acti
background-color: ,#b03808,;
}
.c9:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c2 {
max-width: 38rem;
overflow: initial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ exports[`IntroScreen for practice questions renders properly for 1 question 1`]
background-color: ,#b03808,;
}
.c3:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c0 {
text-align: center;
}
Expand Down Expand Up @@ -113,6 +118,11 @@ exports[`IntroScreen for practice questions renders properly for 2 questions 1`]
background-color: ,#b03808,;
}
.c3:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c0 {
text-align: center;
}
Expand Down
10 changes: 10 additions & 0 deletions src/app/errors/components/__snapshots__/ErrorModal.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ exports[`ErrorModal matches snapshot 1`] = `
background-color: ,#b03808,;
}
.c10:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c2 {
display: -webkit-box;
display: -webkit-flex;
Expand Down Expand Up @@ -369,6 +374,11 @@ exports[`ErrorModal matches snapshots with recorded error ids 1`] = `
background-color: ,#b03808,;
}
.c11:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c2 {
display: -webkit-box;
display: -webkit-flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ exports[`Notifications matches snapshot for acceptCookies 1`] = `
background-color: ,#b03808,;
}
.c6:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c5 {
display: grid;
overflow: visible;
Expand Down Expand Up @@ -265,6 +270,11 @@ exports[`Notifications matches snapshot for appMessage 1`] = `
background-color: ,#b03808,;
}
.c6:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c5 {
display: grid;
overflow: visible;
Expand Down Expand Up @@ -489,6 +499,11 @@ exports[`Notifications matches snapshot for retiredBookRedirect 1`] = `
background-color: ,#b03808,;
}
.c6:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c5 {
display: grid;
overflow: visible;
Expand Down Expand Up @@ -715,6 +730,11 @@ exports[`Notifications matches snapshot for updateAvailable 1`] = `
background-color: ,#b03808,;
}
.c6:focus {
outline: solid #fff;
box-shadow: inset 0 0 0 0.3rem #000;
}
.c5 {
display: grid;
overflow: visible;
Expand Down

0 comments on commit 2f41089

Please sign in to comment.