Skip to content

Commit

Permalink
Make sure menu items have the same height, add padding block
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens committed Dec 9, 2024
1 parent c915f14 commit 3774a33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/css/src/components/header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
font-weight: var(--ams-header-menu-item-font-weight);
line-height: var(--ams-header-menu-item-line-height);
outline-offset: var(--ams-header-menu-item-outline-offset);
padding-block: var(--ams-header-menu-item-padding-block);
touch-action: manipulation;
white-space: nowrap;

Expand All @@ -92,6 +93,7 @@
}

.ams-header__menu-link {
display: inline-block;
text-decoration-line: var(--ams-header-menu-link-text-decoration-line);
text-decoration-thickness: var(--ams-header-menu-link-text-decoration-thickness);
text-underline-offset: var(--ams-header-menu-link-text-underline-offset);
Expand All @@ -114,7 +116,6 @@
border: 0;
margin-block: 0; // [1]
margin-inline: 0; // [1]
padding-block: 0;
padding-inline: 0;

// [1] Remove the margin in older Safari.
Expand Down
1 change: 1 addition & 0 deletions proprietary/tokens/src/components/ams/header.tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"font-weight": { "value": "{ams.text.font-weight.normal}" },
"line-height": { "value": "{ams.text.level.6.line-height}" },
"outline-offset": { "value": "{ams.focus.outline-offset}" },
"padding-block": { "value": "{ams.space.xs}" },
"hover": {
"color": { "value": "{ams.link-appearance.hover.color}" }
}
Expand Down

0 comments on commit 3774a33

Please sign in to comment.