-
Notifications
You must be signed in to change notification settings - Fork 1
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(web-react): Introduce Vertical Navigation #DS-1627 #1864
base: feat/vertical-navigation
Are you sure you want to change the base?
Feat(web-react): Introduce Vertical Navigation #DS-1627 #1864
Conversation
✅ Deploy Preview for spirit-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for spirit-design-system-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
7184850
to
d34b9f7
Compare
a1eba7e
to
449a000
Compare
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.
Not sure about placing partial components
<NavigationAction href="#">Link</NavigationAction> | ||
</NavigationItem> | ||
<NavigationItem> | ||
<Dropdown |
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.
suggestion (if-minor): What about using UncontrolledDropdown
so you will not need to create the state handlers?
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.
Not sure about placing partial components
packages/web-react/src/components/UNSTABLE_Header/demo/HeaderWithNavigationAndNestedItems.tsx
Outdated
Show resolved
Hide resolved
<Text elementType="span" size="small" emphasis="semibold" UNSAFE_className="text-primary"> | ||
My Account | ||
</Text> | ||
<Icon name="chevron-up" boxSize={20} UNSAFE_className="accessibility-open" /> |
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.
question: accessibility-open/closed
- are we missing some props for this?
packages/web-react/src/components/Navigation/demo/NavigationHorizontalWithDropdown.tsx
Show resolved
Hide resolved
packages/web-react/src/components/Navigation/demo/NavigationVerticalWithCollapse.tsx
Outdated
Show resolved
Hide resolved
...ts/UNSTABLE_Header/demo/HeaderWithNavigationAndNestedItems/SecondaryHorizontalNavigation.tsx
Outdated
Show resolved
Hide resolved
expect(screen.getByRole('navigation')).toHaveClass('Navigation'); | ||
expect(screen.getByRole('navigation')).toHaveClass(directionClassName); |
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.
expect(screen.getByRole('navigation')).toHaveClass('Navigation'); | |
expect(screen.getByRole('navigation')).toHaveClass(directionClassName); | |
const element = screen.getByRole('navigation'); | |
expect(element).toHaveClass('Navigation'); | |
expect(element).toHaveClass(directionClassName); |
const navigationClass = useClassNamePrefix('Navigation'); | ||
const navigationActionClass = useClassNamePrefix('NavigationAction'); | ||
const navigationItemClass = useClassNamePrefix('NavigationItem'); |
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.
const navigationClass = useClassNamePrefix('Navigation'); | |
const navigationActionClass = useClassNamePrefix('NavigationAction'); | |
const navigationItemClass = useClassNamePrefix('NavigationItem'); | |
const navigationClass = useClassNamePrefix('Navigation'); | |
const navigationActionClass = `${navigationClass}Action`; | |
const navigationItemClass = `${navigationClass}Item`; |
Description
Additional context
Issue reference