Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/eui/changelogs/upcoming/10248.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Added `text-underline-offset` to `EuiLink` so dotted underlines no longer touch the text at small font sizes
Comment thread
andreadelrio marked this conversation as resolved.
Outdated
2 changes: 2 additions & 0 deletions packages/eui/src/components/link/link.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const euiLinkCSS = (euiThemeContext: UseEuiTheme) => {
/* use a fallback as "from-font" isn't fully supported by all last major versions yet */
text-decoration-thickness: ${euiTheme.border.width.thin};
text-decoration-thickness: from-font;
/* the font's default offset lets the underline touch the text at small font sizes */
text-underline-offset: 0.15em;

&:hover,
&:focus {
Expand Down
Loading