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, 2024

@patternfly-build

andrew-ronaldson

Choose a reason for hiding this comment

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

B-E-A-uuuuutiful!

wise-king-sullyman

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>}

thatblindgeye

{...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.

This will need to be added back in. Right now the Flyout example doesn't render the icon to indicate the item has any sort of interaction (item "Flyout link 3" in the following screenshot):

image

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!

thatblindgeye

nicolethoen

mattnolting

Choose a reason for hiding this comment

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

LGTM 👍

wise-king-sullyman

@patternfly-build

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! 🎉

Reviewers

@wise-king-sullyman wise-king-sullyman wise-king-sullyman approved these changes

@nicolethoen nicolethoen nicolethoen approved these changes

@andrew-ronaldson andrew-ronaldson andrew-ronaldson approved these changes

@thatblindgeye thatblindgeye thatblindgeye approved these changes

@kmcfaul kmcfaul Awaiting requested review from kmcfaul kmcfaul was automatically assigned from patternfly/react-reviewers

+1 more reviewer

@mattnolting mattnolting mattnolting approved these changes

Reviewers whose approvals may not affect merge requirements