Skip to content

Commit

Permalink
fix: add correct token for the focus ring (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaRybkina committed Apr 25, 2023
1 parent 0e96f07 commit 9191bca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/_rules/focus-ring.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// TODO: use actual variables and values when those has been defined
const focusRingStyle = {
'outline': '2px solid var(--w-outline)',
'outline': '2px solid var(--w-color-focused)',
'outline-offset': 'var(--w-outline-offset, 1px)',
};

Expand Down
2 changes: 1 addition & 1 deletion test/focus-ring.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test("focus ring", async (t) => {
expect(css).toMatchInlineSnapshot(`
"/* layer: default */
.focusable\\\\:focus,
.focusable\\\\:focus-visible{outline:2px solid var(--w-outline);outline-offset:var(--w-outline-offset, 1px);}
.focusable\\\\:focus-visible{outline:2px solid var(--w-color-focused);outline-offset:var(--w-outline-offset, 1px);}
.focusable\\\\:focus\\\\:not\\\\(\\\\:focus-visible\\\\){outline:none;}
.focusable-inset{--w-outline-offset:-3px;}"
`);
Expand Down

0 comments on commit 9191bca

Please sign in to comment.