Skip to content

Conversation

logonoff
Copy link
Member

To be honest I don't know if these changes should be made to PF.. but variant="plain" looks the most "in place" in the context of OCP's masthead and we should definitely at least have that variant supported in PF

What: Closes #12066

Additional issues: openshift/console#15555

@patternfly-build
Copy link
Contributor

patternfly-build commented Oct 15, 2025

Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change request below if this is something that is still approved by design. cc @andrew-ronaldson wdyt? Should NotificationBadge support plain styling (and if so, only plain or stateful?), or would this implementation be better suited to setting up a custom Button (after all all NotificationBadge is is a Button wwith only the necessary props exposed)?

isExpanded?: boolean;
/** Determines the variant of the notification badge. */
variant?: NotificationBadgeVariant | 'read' | 'unread' | 'attention';
variant?: NotificationBadgeVariant | ButtonProps['variant'] | 'read' | 'unread' | 'attention';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would want to add a different prop, maybe buttonVariant, to pass into the Button variant prop. This prop is a bit confusingly named and should only be for passing to the Button state prop.

We would also need to only pass in anything to the Button state prop only if the button variant is stateful, otherwise the icon coloring on hover/focus gets messed up if the state modifier classes are applied with pf-m-plain.

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.

Bug - NotificationBadge - variant="plain" but is undocumented

3 participants