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

add render prop to NavigationItem (#3279) #3417

Closed
wants to merge 8 commits into from

Conversation

mark-tate
Copy link
Contributor

  • the render prop enables the substitution of the default anchor tag with an alternate link, such as React Router, facilitating integration with routing libraries.
  • parent items can now be modified to act as hyperlinks to specific pages while still retaining the ability to expand and collapse rows

Copy link

vercel bot commented May 15, 2024

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

Name Status Preview Comments Updated (UTC)
saltdesignsystem ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 4:22pm

Copy link

changeset-bot bot commented May 15, 2024

🦋 Changeset detected

Latest commit: 98555ba

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@salt-ds/core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mark-tate mark-tate force-pushed the 3279-pass-props-to-navigation-item branch 2 times, most recently from 7a77190 to 6aec97a Compare May 15, 2024 09:48
@mark-tate mark-tate force-pushed the 3279-pass-props-to-navigation-item branch from 6aec97a to 60c3bf4 Compare May 15, 2024 10:11
@mark-tate mark-tate linked an issue May 15, 2024 that may be closed by this pull request
1 task
@mark-tate mark-tate marked this pull request as ready for review May 15, 2024 10:34
JoanaMMoreira
JoanaMMoreira previously approved these changes May 30, 2024
Copy link
Contributor

@joshwooding joshwooding left a comment

Choose a reason for hiding this comment

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

Had a chat with @mark-tate about an alternative

@mark-tate mark-tate force-pushed the 3279-pass-props-to-navigation-item branch 2 times, most recently from a14f302 to 492fdd4 Compare June 18, 2024 21:55
mark-tate and others added 3 commits June 28, 2024 09:57
- the `render` prop enables the substitution of the default anchor tag with an alternate link, such as React Router, facilitating integration with routing libraries.
- test the DOM element exists in RenderElement tests
- move the CustomLinkComponent out of the example, to avoid folks copying it
- render element docs page broken by linter, props merging section now appears
origami-z
origami-z previously approved these changes Jul 1, 2024
Fercas123
Fercas123 previously approved these changes Jul 1, 2024
Copy link
Contributor

@joshwooding joshwooding left a comment

Choose a reason for hiding this comment

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

A11y issues

@joshwooding joshwooding marked this pull request as draft July 5, 2024 15:20
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.

Allow passing more props to NavigationItem's link element
5 participants