Skip to content

Commit

Permalink
fix: fix up checkmark and menu items align in nav menu
Browse files Browse the repository at this point in the history
  • Loading branch information
timkim committed Apr 11, 2023
1 parent d482784 commit c89bb68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ const GlobalHeader = ({
border-top-left-radius: 0;
border-top-right-radius: 0;
${page.menu.some(menu => menu.description) &&
`width: var(--spectrum-global-dimension-size-2400);`}
`width: 230px;`}
@media screen and (max-width: ${MOBILE_SCREEN_WIDTH}) {
margin-top: calc(-1 * var(--spectrum-global-dimension-size-40));
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-theme-aio/src/components/Menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ const Item = ({ children, isDivider = false, isHighlighted, isSelected, href = '
flex-direction: row;
justify-content: flex-start;
overflow: hidden;
align-self: start;
${ isHeightUnset && !isHeightUnset ? `margin-top: var(--spectrum-global-dimension-size-50) !important` : ""}
}`}>
<div css={css`
width: 20px !important;
${ isHeightUnset ? "" : "height: 15px !important;" }
${ isHeightUnset ? "margin-top: 8px;" : "height: 15px !important;" }
padding-right: 5px;
overflow: hidden;
`}>
Expand All @@ -59,7 +60,6 @@ const Item = ({ children, isDivider = false, isHighlighted, isSelected, href = '
css={css`
display: ${isSelected ? "block" : "none"} ;
color: var(--spectrum-alias-icon-color-selected) !important;
`}
/>
</div>
Expand Down

0 comments on commit c89bb68

Please sign in to comment.