From fb46402e0785391e333ce2dc522500bc5da8bc9a Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 14 Oct 2026 14:47:52 +0200 Subject: [PATCH 1/2] Link: Round focus rings with the small radius token --- packages/components/CHANGELOG.md | 1 + packages/components/src/external-link/style.scss | 3 ++- packages/ui/CHANGELOG.md | 1 + packages/ui/src/link/style.module.css | 4 ++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 09c12368d7e87c..73728a2c0bbbd8 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -18,6 +18,7 @@ ### Enhancements +- `ExternalLink`: Use a small border radius for consistent focus rings. - `Popover`: Use the design-system stroke color, border width, radius, and background on the default surface. `Dropdown` and `DropdownMenu` pick this up through `Popover` ([#84574](https://github.com/WordPress/gutenberg/pull/84574)). ### Deprecations diff --git a/packages/components/src/external-link/style.scss b/packages/components/src/external-link/style.scss index be9ae4ddf2969a..1497ff0578d2b7 100644 --- a/packages/components/src/external-link/style.scss +++ b/packages/components/src/external-link/style.scss @@ -1,6 +1,7 @@ @use "@wordpress/base-styles/mixins"; .components-external-link { + border-radius: var(--wpds-border-radius-sm); color: var(--wpds-color-foreground-interactive-brand); text-decoration: none; @@ -16,7 +17,7 @@ &:focus { // Override style from wp-admin common.css. box-shadow: none; - border-radius: 0; + border-radius: var(--wpds-border-radius-sm); &:not(:active) { @include mixins.outset-ring__focus(); diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index cc6dc4961cb33e..0db122141a24b5 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -16,6 +16,7 @@ ### Enhancements +- `Link`: Use a small border radius for consistent focus rings in the default variant. - `Dialog`: Use the WordPress compatibility overlay slot as the default portal container when available, preserving explicit container overrides, including null to delay rendering ([#84379](https://github.com/WordPress/gutenberg/pull/84379)). - `Drawer`: Use the WordPress compatibility overlay slot as the default portal container when available, preserving explicit container overrides, including null to delay rendering ([#84380](https://github.com/WordPress/gutenberg/pull/84380)). - `Dialog`: Add an opt-in `auto` popup size that fits content within the responsive minimum and viewport inset ([#84559](https://github.com/WordPress/gutenberg/pull/84559)). diff --git a/packages/ui/src/link/style.module.css b/packages/ui/src/link/style.module.css index 945e7b83220115..fd0667922e784f 100644 --- a/packages/ui/src/link/style.module.css +++ b/packages/ui/src/link/style.module.css @@ -3,6 +3,9 @@ @layer components { .link { + --_gcd-a-border-radius: var(--wpds-border-radius-sm); + + border-radius: var(--wpds-border-radius-sm); text-underline-offset: 0.2em; text-decoration-thickness: from-font; } @@ -40,6 +43,7 @@ /* Unstyled variant */ .is-unstyled { + --_gcd-a-border-radius: 0; --_gcd-a-color: inherit; color: inherit; From cdd8e6dba8a8f535a96cd62302e35e8d3cc7f11f Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 14 Oct 2026 14:48:56 +0200 Subject: [PATCH 2/2] Link: Reference the focus radius pull request in changelogs --- packages/components/CHANGELOG.md | 2 +- packages/ui/CHANGELOG.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 73728a2c0bbbd8..74c576902a352a 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -18,7 +18,7 @@ ### Enhancements -- `ExternalLink`: Use a small border radius for consistent focus rings. +- `ExternalLink`: Use a small border radius for consistent focus rings ([#84697](https://github.com/WordPress/gutenberg/pull/84697)). - `Popover`: Use the design-system stroke color, border width, radius, and background on the default surface. `Dropdown` and `DropdownMenu` pick this up through `Popover` ([#84574](https://github.com/WordPress/gutenberg/pull/84574)). ### Deprecations diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index 0db122141a24b5..af24189cb29dab 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -16,7 +16,7 @@ ### Enhancements -- `Link`: Use a small border radius for consistent focus rings in the default variant. +- `Link`: Use a small border radius for consistent focus rings in the default variant ([#84697](https://github.com/WordPress/gutenberg/pull/84697)). - `Dialog`: Use the WordPress compatibility overlay slot as the default portal container when available, preserving explicit container overrides, including null to delay rendering ([#84379](https://github.com/WordPress/gutenberg/pull/84379)). - `Drawer`: Use the WordPress compatibility overlay slot as the default portal container when available, preserving explicit container overrides, including null to delay rendering ([#84380](https://github.com/WordPress/gutenberg/pull/84380)). - `Dialog`: Add an opt-in `auto` popup size that fits content within the responsive minimum and viewport inset ([#84559](https://github.com/WordPress/gutenberg/pull/84559)).