Skip to content

Commit

Permalink
feat: add outline style dashed to purmerend theme (#912)
Browse files Browse the repository at this point in the history
Added focus `outline-style` dashed to Purmerend theme

<img width="600" alt="Screenshot 2025-01-06 at 15 19 42"
src="https://github.com/user-attachments/assets/349206c8-dea0-4414-a84c-abb2fc016589"
/>

---------

Co-authored-by: Marwa <marwahello@frameless.io>
  • Loading branch information
Marwaxhello and Marwa authored Jan 15, 2025
1 parent 762d71c commit 0bb561e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/stale-jokes-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@nl-design-system-unstable/basis-design-tokens": patch
"@nl-design-system-community/purmerend-design-tokens": patch
---

Use `dashed` instead of `dotted` focus ring, because it adheres to WCAG more reliable. Some browsers render circular dots, in that case the 4px outline-width is not sufficient to achieve the minimum focus ring area.
2 changes: 1 addition & 1 deletion proprietary/basis-design-tokens/figma/basis.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@
},
"outline-style": {
"$type": "other",
"$value": "dotted"
"$value": "dashed"
},
"outline-width": {
"$type": "borderWidth",
Expand Down

0 comments on commit 0bb561e

Please sign in to comment.