Skip to content

Commit

Permalink
Update outline to match new primer react style of gapped outline (#52…
Browse files Browse the repository at this point in the history
…099)
  • Loading branch information
heiskr authored Aug 23, 2024
1 parent 48176f8 commit 276b364
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/events/components/Survey.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
}

.customRadio:focus + label {
box-shadow: 0 0 1px 3px var(--color-accent-muted);
outline: 2px solid var(--fgColor-accent, var(--color-accent-fg));
outline-offset: -2px;
box-shadow: 0 0 0 3px inset;
}
7 changes: 5 additions & 2 deletions src/frame/components/ui/ScrollButton/ScrollButton.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
opacity: 1;
}

.customFocus:focus {
box-shadow: 0 0 1px 3px var(--color-accent-muted);
.customFocus:focus:not(:focus-visible), // override primer css specificity
.customFocus:focus-visible {
outline: 2px solid var(--fgColor-accent, var(--color-accent-fg));
outline-offset: -2px;
box-shadow: 0 0 0 4px inset; // A little wider for the border radius :shrug:
}

0 comments on commit 276b364

Please sign in to comment.