-
Notifications
You must be signed in to change notification settings - Fork 82
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(navlist.item): Add disabled
attribute to disabled NavList.Item component
#2723
Conversation
🦋 Changeset detectedLatest commit: f6aec93 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
disabled
attribute to disabled NavList.Item componentdisabled
attribute to disabled NavList.Item component
size-limit report 📦
|
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.
We need to do some validation before passing this prop, disabled
is not supported by <a>
, which is the default for NavList. Are you intending to use this for button elements?
Yeah, somehow I missed that. Will check. |
I think it should be fine with |
@colomolo I don't think I follow, could you explain what you read from that? The way I see it, the default tag for the NavListItem is |
I mean that in Button component
|
Right, I see. So it's not going to throw a warning but just do nothing instead. In that case I think we can land this as it is for now, although ideal case would still be handling per element type. |
Purpose of PR
Adding actual
disabled
attribute to HTML element of NavList.Item whenisDisabled
is passed.PR Checklist
readme.md
file(s)