diff --git a/.changeset/famous-seahorses-smell.md b/.changeset/famous-seahorses-smell.md new file mode 100644 index 00000000000..3921b616ffa --- /dev/null +++ b/.changeset/famous-seahorses-smell.md @@ -0,0 +1,15 @@ +--- +"@utrecht/link-css": minor +--- + +Move the Link `text-underline` effect from `focus` to `focus-visible`. The goal is to not change the `text-underline` appearance during the flow of moving the mouse over the link (`:hover`) and then clicking the link (`:focus` + `:active`). + +Add new `focus-visible` tokens for Link: + +- `utrecht.link.focus-visible.text-decoration` +- `utrecht.link.focus-visible.text-decoration-thickness` + +The following tokens are now deprecated: + +- `utrecht.link.focus.text-decoration` +- `utrecht.link.focus.text-decoration-thickness` diff --git a/.changeset/forty-months-dress.md b/.changeset/forty-months-dress.md new file mode 100644 index 00000000000..95aadb45e09 --- /dev/null +++ b/.changeset/forty-months-dress.md @@ -0,0 +1,8 @@ +--- +"@utrecht/focus-ring-css": major +--- + +Remove the SCSS variable `$utrecht-focus-visible-fallback` and remove the following mixins: + +- `utrecht-focus-ring-reset` +- `utrecht-focus-pseudo-classes-backwards-compatible` diff --git a/.changeset/olive-numbers-smile.md b/.changeset/olive-numbers-smile.md new file mode 100644 index 00000000000..6e726401f6f --- /dev/null +++ b/.changeset/olive-numbers-smile.md @@ -0,0 +1,15 @@ +--- +"@utrecht/skip-link-css": minor +--- + +Add new tokens for Skip Link, to replace deprecated tokens: + +- `utrecht.skip-link.focus-visible.color` +- `utrecht.skip-link.focus-visible.background-color` +- `utrecht.skip-link.focus-visible.text-decoration` + +The following Skip Link tokens are now deprecated: + +- `utrecht.skip-link.focus.color` +- `utrecht.skip-link.focus.background-color` +- `utrecht.skip-link.focus.text-decoration` diff --git a/.changeset/three-emus-juggle.md b/.changeset/three-emus-juggle.md new file mode 100644 index 00000000000..f5bdd56a89d --- /dev/null +++ b/.changeset/three-emus-juggle.md @@ -0,0 +1,13 @@ +--- +"@utrecht/map-control-button-css": patch +"@utrecht/top-task-link-css": patch +"@utrecht/pagination-css": patch +"@utrecht/textarea-css": patch +"@utrecht/textbox-css": patch +"@utrecht/button-css": patch +"@utrecht/select-css": patch +"@utrecht/link-css": patch +"@utrecht/components": patch +--- + +Start using `:focus-visible`, Safari support has caught up. diff --git a/components/button/src/index.scss b/components/button/src/index.scss index 4dc08a6637d..19de6679848 100644 --- a/components/button/src/index.scss +++ b/components/button/src/index.scss @@ -43,34 +43,12 @@ @include utrecht-button--focus; } -// The workaround for missing `:focus-visible` support makes the code quite complex, -// keep the ideal version around to restore it easily when browser support improves. - -@if $utrecht-focus-visible-fallback { - .utrecht-button:focus { - /* Show focus ring even for disabled :focus-visible buttons. * - /* For example: