-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix(15510): Update Interface to Include href Prop in SwitcherItem Type #16043
fix(15510): Update Interface to Include href Prop in SwitcherItem Type #16043
Conversation
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also needs:
- To be added to the PropTypes with the same comment
- Pulled out of
...rest
to instead be a named prop within the component, and placed ontoLink
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
599fbf0
carbon-design-system#16043) * fix(15510): update switcherItem interface * Update SwitcherItem.tsx * fix(15510): update propType and href passed to Link * chore(15510): fix typo * chore: update snaps --------- Co-authored-by: Andrea N. Cardona <[email protected]>
Closes #15510
Added optional 'href' prop to
BaseSwitcherItemProps
for link URLs.New
Added href prop to
BaseSwitcherItemProps
Testing / Reviewing
Test the usage of
SwitcherItem
with thehref
prop in a TypeScript environment within aSwitcher
component. Verify that the TypeScript compiler should not throw error and the component renders without errors and correctly applies the providedhref
attribute