Skip to content

Commit

Permalink
Move focus-ring into its own variable
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroAgustin committed Feb 11, 2021
1 parent 5b1744e commit ee206d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion knopf.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
--knopf-block-padding: var(--knopf-padding);
--knopf-inline-padding: calc(var(--knopf-padding) * 2);

/* Misc */
--knopf-focus-ring: 0 0 0 0.15em hsl(var(--knopf-color) / 40%);

/* Properties */
all: unset;
-webkit-user-drag: element;
Expand Down Expand Up @@ -232,7 +235,7 @@
/* Focus */
.knopf.knopf:focus,
.knopf.knopf:focus-within {
--knopf-box-shadow: 0 0 0 0.15em hsl(var(--knopf-color) / 40%);
--knopf-box-shadow: var(--knopf-focus-ring);

outline: none;
}
Expand Down

0 comments on commit ee206d4

Please sign in to comment.