Skip to content

Commit

Permalink
docs: do not use aria-current and rel="up" at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Sep 18, 2023
1 parent c4ae427 commit 2604e96
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/storybook-react/src/stories/BreadcrumbNav.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ import { designTokenStory } from './util';

// custom link component for storybook
const ExampleCustomLink = ({ children, ...rest }: any) => {
return <a {...rest}>{children}</a>;
return (
<a className="utrecht-link utrecht-link--html-a" {...rest}>
{children}
</a>
);
};

ExampleCustomLink.displayName = 'ExampleCustomLink';
Expand Down Expand Up @@ -70,8 +74,8 @@ export const Current: Story = {
<BreadcrumbLink href="/a/" index={1}>
Niveau 1
</BreadcrumbLink>,
<BreadcrumbLink href="/a/b/" rel="up" index={2} current>
Niveau 2
<BreadcrumbLink href="/a/b/" index={2} current>
Huidige pagina
</BreadcrumbLink>,
],
},
Expand Down

0 comments on commit 2604e96

Please sign in to comment.