Skip to content

Commit bbb14ce

Browse files
authored
Updated Link underline to fill entire width (#809)
1 parent ec0231e commit bbb14ce

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.changeset/gentle-bulldogs-live.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react-brand': patch
3+
---
4+
5+
Updated `Link` underline to fill entire width

packages/react/src/Link/Link.module.css

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.Link {
2+
--arrow-width: var(--base-size-20);
23
position: relative;
34
display: inline-flex;
45
align-items: center;
@@ -16,7 +17,7 @@
1617
position: absolute;
1718
bottom: -0.15em;
1819
left: 0;
19-
width: calc(100% - 1.5em);
20+
width: calc(100% - var(--arrow-width));
2021
height: 2px;
2122
pointer-events: none;
2223
content: '';
@@ -65,8 +66,8 @@
6566
}
6667

6768
.Link--large .Link-arrow {
68-
width: 20px;
69-
height: 20px;
69+
width: var(--arrow-width);
70+
height: var(--base-size-20);
7071
}
7172

7273
.Link--arrow-start::after {

0 commit comments

Comments
 (0)