-
Notifications
You must be signed in to change notification settings - Fork 353
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(NotificationBadge): refactor to use status buttons for penta #10020
feat(NotificationBadge): refactor to use status buttons for penta #10020
Conversation
Preview: https://patternfly-react-pr-10020.surge.sh A11y report: https://patternfly-react-pr-10020-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.
@nicolethoen I think that might be more of a bug with button, but there are some ways we could resolve it NotificationBadge side. I could pass the icon as a child of the Button when there isn't a count, and to the I wonder if we should cut the flexibility of NotificationBadge back in penta since if a more custom solution is needed consumers can just customize the stateful Button themselves 🤔 |
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.
LGTM, thanks
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.
May be worth making a codemod just to warn consumers about the markup change
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.
lgtm!
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.
CSS wise 👍🏼
What: Closes #9811
Additional issues:
Core is removing the notification badge, this PR internally replaces our notification badge with the button component while keeping the external API the same.
Convenience link: https://patternfly-react-pr-10020.surge.sh/components/notification-badge