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

feat(badge): add disabled badge variant #10445

Merged
merged 6 commits into from
Jun 6, 2024

Conversation

evwilkin
Copy link
Member

@evwilkin evwilkin commented May 23, 2024

@evwilkin evwilkin linked an issue May 28, 2024 that may be closed by this pull request
@patternfly-build
Copy link
Contributor

patternfly-build commented Jun 3, 2024

@tlabaj tlabaj requested review from a team, tlabaj, kmcfaul and mattnolting and removed request for a team June 3, 2024 14:13
@tlabaj tlabaj requested review from a team and mmenestr and removed request for a team June 3, 2024 14:14
Copy link
Contributor

@wise-king-sullyman wise-king-sullyman left a 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?

packages/react-core/src/components/Badge/examples/Badge.md Outdated Show resolved Hide resolved
Copy link
Contributor

@wise-king-sullyman wise-king-sullyman left a 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,
Copy link
Contributor

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

Copy link
Contributor

@tlabaj tlabaj left a 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

@tlabaj tlabaj merged commit cf4a033 into patternfly:v6 Jun 6, 2024
13 checks passed
@patternfly-build
Copy link
Contributor

Your changes have been released in:

Thanks for your contribution! 🎉

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.

Badge - add disabled variation
5 participants