Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add side navigation #154

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: add side navigation #154

wants to merge 3 commits into from

Conversation

bddjong
Copy link
Contributor

@bddjong bddjong commented Aug 27, 2024

Paar side notes:

  • Menu list is inmiddels losgetrokken naar een eigen component om herbruikt te worden in de mobiele versie en flexibeler toegepast te worden
  • De color tokens van de menu list in de sidenav zijn aangepast in de nieuwe PR om transparency te gebruiken zoals op de huidige website zodat de achtergrond van kleur kan wisselen zonder de highlight kapot te maken.

Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nldesignsystem-nl-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 27, 2024 6:25am

flex: 1;
line-height: 1.5;
margin-inline-start: 4px;
padding-block: 0.75rem;
Copy link
Member

@hidde hidde Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

als we block en inline beide zetten kunnen we beter de padding shorthand gebruiken

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Als de stylelint in te stellen is om non-logical-shorthands zoals padding alleen toe te staan met 1 length, dan is het okay.

Anders is het handiger om padding volledig te blokkeren.

display: flex;
flex: 1;
line-height: 1.5;
margin-inline-start: 4px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

voelt als een magic number, zou het moeten corresponderen met de witruimte binnen het icon voor 'Verberg'? die lijkt 2px te zijn?

{props.label}
</Link>
{props.children && (
<Button appearance="subtle-button" className="kernteam-menu-list__icon-button" onClick={() => setOpen(!open)}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hier kunnen we het beste de expanded state exposen:

Suggested change
<Button appearance="subtle-button" className="kernteam-menu-list__icon-button" onClick={() => setOpen(!open)}>
<Button appearance="subtle-button" aria-expanded={open} className="kernteam-menu-list__icon-button" onClick={() => setOpen(!open)}>

>
{open ? (
<>
<IconArrowBarToLeft />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

laten we het icon visueel verberg en als presentational markeren

Copy link
Member

@Robbert Robbert Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dat kan met de Icon component van Utrecht

);
};

export const MenuList = ({ children, ...restProps }: PropsWithChildren) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hier NavList ipv MenuList gebruiken om verwarring met de menu role of het <menu> HTML element te voorkomen?

children?: MenuListItemProps[];
}

export const MenuListItem = (props: MenuListItemProps) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same als hierboven maar NavListItem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants