diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 8819f5cddbcfa0..73846a611157b8 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -19,6 +19,7 @@ ### Enhancements +- `ExternalLink`: Use a small border radius for consistent focus rings ([#84697](https://github.com/WordPress/gutenberg/pull/84697)). - `Menu`: Use WPDS motion tokens for popup transition durations and slide easing ([#84706](https://github.com/WordPress/gutenberg/pull/84706)). - `TabPanel`: Add interaction backgrounds to unselected tabs, preserve keyboard focus rings, and size neutral vertical selection lines to the content ([#84572](https://github.com/WordPress/gutenberg/pull/84572)). - `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)). 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 1906efce0b5d84..f24e2ab51c53ac 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 ([#84697](https://github.com/WordPress/gutenberg/pull/84697)). - `Tabs`: Add interaction backgrounds to unselected tabs, preserve keyboard focus rings, and replace vertical chevrons with content-height selection lines without widening minimal tab lists ([#84572](https://github.com/WordPress/gutenberg/pull/84572)). - `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)). @@ -41,7 +42,6 @@ ### Documentation - `Tabs`: Preserve intrinsic icon styles in the tab icons and tooltips story ([#84618](https://github.com/WordPress/gutenberg/pull/84618)). - - Document accessible naming for Combobox popups ([#84551](https://github.com/WordPress/gutenberg/pull/84551)). - Add popup width stories for Autocomplete, Combobox, Select, SearchableSelect, and SearchableChipSelect ([#84320](https://github.com/WordPress/gutenberg/pull/84320)). - `Menu`: Clarify icon and description usage, document mixed icon alignment and current layout defaults, and favor short, clear labels ([#84020](https://github.com/WordPress/gutenberg/pull/84020)). 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;