Skip to content

Commit

Permalink
fix: more fixes to menu items without description
Browse files Browse the repository at this point in the history
  • Loading branch information
timkim committed Apr 11, 2023
1 parent 3cbc693 commit b211242
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,13 @@ const GlobalHeader = ({
}}
href={version.href}
{...getExternalLinkProps(version.href)}>
{version.title}
<div
css={css`
margin-top: var(--spectrum-global-dimension-size-50);
margin-bottom: var(--spectrum-global-dimension-size-50);
`}>
{version.title}
</div>
</MenuItem>
))}
</Menu>
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-theme-aio/src/components/Menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Item = ({ children, isDivider = false, isHighlighted, isSelected, href = '
}`}>
<div css={css`
width: 20px !important;
${ isHeightUnset ? "margin-top: 8px;" : "height: 15px !important;" }
${ isHeightUnset ? "margin-top: 8px;" : "height: 15px !important; margin-top: 4px;" }
padding-right: 5px;
overflow: hidden;
`}>
Expand Down

0 comments on commit b211242

Please sign in to comment.