Skip to content

Commit

Permalink
fix(root): display correct styling on nav item
Browse files Browse the repository at this point in the history
props were not being passed down correctly thus not inheriting correct styling when selected
  • Loading branch information
gd2910 committed Dec 5, 2024
1 parent 7e98694 commit d85f25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TopNavWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const TopNavWrapper: React.FC<TopNavWrapperProps> = ({
<a slot="app-icon" href={withPrefix("/")}>
<ICDSLogo role="img" aria-labelledby="icds-link" className="icds-logo" />
</a>
{textLinks.map(({ key, text, ...rest }) => (
{textLinks.map(({ key, text, props }) => (
<ic-navigation-item slot="navigation" key={key}>
<GatsbyLink slot="navigation-item" {...rest}>
<GatsbyLink slot="navigation-item" {...props}>
{text}
</GatsbyLink>
</ic-navigation-item>
Expand Down

0 comments on commit d85f25b

Please sign in to comment.