Skip to content

Commit 3dbee75

Browse files
jameskosterciampo
andauthored
Button: Align link variant underline with Link and ExternalLink (WordPress#77842)
* Button: Align link variant underline with Link and ExternalLink Apply `text-underline-offset: 0.2em` and `text-decoration-thickness: from-font` to the `is-link` variant so it visually matches the `Link` and `ExternalLink` components. Made-with: Cursor * Components: Add changelog entry for Button link variant underline alignment Made-with: Cursor --- Co-authored-by: jameskoster <jameskoster@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
1 parent 1a1882f commit 3dbee75

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

packages/components/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Enhancements
6+
7+
- `Button`: Align `link` variant underline (offset and thickness) with `ExternalLink` and `Link` from `@wordpress/ui` ([#77842](https://github.com/WordPress/gutenberg/pull/77842)).
8+
59
### Bug Fixes
610

711
- `TabPanel`: Fix tab indicator animation while switching tabs ([#77812](https://github.com/WordPress/gutenberg/pull/77812)).

packages/components/src/button/style.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@
252252
font-weight: $font-weight-regular;
253253
color: $components-color-accent;
254254
text-decoration: underline;
255+
text-underline-offset: 0.2em;
256+
text-decoration-thickness: from-font;
255257

256258
@media not (prefers-reduced-motion) {
257259
transition-property: border, background, color;

0 commit comments

Comments
 (0)