Skip to content

Commit edb8c8f

Browse files
committed
fix: external link icon relative sizing
Use font size (em) relative sizing for the external link icon, so it is sized appropriately at the various breakpoints where the nav font size changes.
1 parent 3ea9455 commit edb8c8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

blocks/header/header.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ a.nav__home-link {
147147
}
148148

149149
a.nav-page-links__link--external {
150-
--icon-size: 0.625rem;
150+
/* Correspond with font size, with ratio of 10px at 18px font size. */
151+
--icon-size: 0.625em;
151152

152153
display: flex;
153154
flex-direction: row;
@@ -160,7 +161,7 @@ a.nav__home-link {
160161
width: var(--icon-size);
161162
height: var(--icon-size);
162163
background: var(--icon-external-link-alt) center no-repeat;
163-
background-size: cover;
164+
background-size: contain;
164165
transition: transform ease-out 130ms;
165166
}
166167

0 commit comments

Comments
 (0)