-
Notifications
You must be signed in to change notification settings - Fork 353
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(Nav): Added default nav item wrapper. Added support for nav item icons #10687
Conversation
Preview: https://patternfly-react-pr-10687.surge.sh A11y report: https://patternfly-react-pr-10687-a11y.surge.sh |
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.
B-E-A-uuuuutiful!
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.
One nit, but other than that looks great!
@@ -193,8 +193,8 @@ export const NavItem: React.FunctionComponent<NavItemProps> = ({ | |||
{...(hasFlyout && { ...ariaFlyoutProps })} | |||
{...props} | |||
> | |||
{hasNavLinkWrapper ? <span className={css(`${styles.nav}__link-text`)}>{children}</span> : children} | |||
{flyout && flyoutButton} | |||
{icon && <span className={css(`${styles.nav}__link-icon`)}>{icon}</span>} |
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.
{icon && <span className={css(`${styles.nav}__link-icon`)}>{icon}</span>} | |
{icon && <span className={css(styles.navLinkIcon)}>{icon}</span>} |
@@ -193,8 +193,8 @@ export const NavItem: React.FunctionComponent<NavItemProps> = ({ | |||
{...(hasFlyout && { ...ariaFlyoutProps })} | |||
{...props} | |||
> | |||
{hasNavLinkWrapper ? <span className={css(`${styles.nav}__link-text`)}>{children}</span> : children} | |||
{flyout && flyoutButton} |
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.
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.
oops that was a paste mistake! good catch!
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.
LGTM 👍
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #9755 #10685
Additional issues: