-
Notifications
You must be signed in to change notification settings - Fork 375
fix(Popover): Refactor popover header #8774
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
Conversation
|
Preview: https://patternfly-react-pr-8774.surge.sh A11y report: https://patternfly-react-pr-8774-a11y.surge.sh |
| <header className={css(styles.popoverHeader, className)} {...props}> | ||
| <div className={css(styles.popoverTitle)}> | ||
| {icon && <PopoverHeaderIcon>{icon}</PopoverHeaderIcon>} | ||
| <PopoverHeaderText headingLevel={titleHeadingLevel} id={id}> |
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.
This is fine but should it be <PopoverHeaderTitleText>? That will match the core class. It's named that way to try and avoid naming conflicts if we introduce something like a subtitle in the header.
mcoker
left a comment
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 like the id was moved to the title text element - it should go on the title element instead. Otherwise lgtm!
| <div className={css(styles.popoverTitle)}> |
What: Closes #8456