-
Notifications
You must be signed in to change notification settings - Fork 355
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
feat(badge): add disabled badge variant #10445
Conversation
Preview: https://patternfly-react-pr-10445.surge.sh A11y report: https://patternfly-react-pr-10445-a11y.surge.sh |
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.
Looks great other than one nit about the docs, and maybe I'm misunderstanding something (likely) but shouldn't there be a change in Button that goes along with this change too?
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.
🎉
className={css( | ||
styles.badge, | ||
(isRead ? styles.modifiers.read : styles.modifiers.unread) as any, | ||
(isDisabled ? styles.modifiers.disabled : '') as any, |
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.
since there is no alternative can we say do this instead?
isDisabled && styles.modifiers.disabled
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.
one small update needed
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #10417
This PR adds a disabled badge variant