feat(Nav): Added default nav item wrapper. Added support for nav item icons by tlabaj · Pull Request #10687 · patternfly/patternfly-react
Conversation
This was linked to issues
Jul 1, 2024Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
B-E-A-uuuuutiful!
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, but other than that looks great!
| > | ||
| {hasNavLinkWrapper ? <span className={css(`${styles.nav}__link-text`)}>{children}</span> : children} | ||
| {flyout && flyoutButton} | ||
| {icon && <span className={css(`${styles.nav}__link-icon`)}>{icon}</span>} |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {icon && <span className={css(`${styles.nav}__link-icon`)}>{icon}</span>} | |
| {icon && <span className={css(styles.navLinkIcon)}>{icon}</span>} |
| {...props} | ||
| > | ||
| {hasNavLinkWrapper ? <span className={css(`${styles.nav}__link-text`)}>{children}</span> : children} | ||
| {flyout && flyoutButton} |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops that was a paste mistake! good catch!
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Your changes have been released in:
- @patternfly/react-code-editor@6.0.0-alpha.81
- @patternfly/react-core@6.0.0-alpha.81
- @patternfly/react-docs@7.0.0-alpha.88
- @patternfly/react-drag-drop@6.0.0-alpha.63
- @patternfly/react-integration@6.0.0-alpha.41
- demo-app-ts@5.1.1-alpha.80
- @patternfly/react-table@6.0.0-alpha.82
- @patternfly/react-templates@6.0.0-alpha.31
Thanks for your contribution! 🎉
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
