-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Sidebar headless UI menu #16333
Sidebar headless UI menu #16333
Conversation
airbyte-webapp/src/views/layout/SideBar/components/SidebarDropdownMenu.tsx
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/views/layout/SideBar/components/SidebarDropdownMenu.tsx
Outdated
Show resolved
Hide resolved
For validation please make sure that the menu is completely usable via keyboard only and doesn't require mouse anymore to operate. |
# Conflicts: # airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.tsx # airbyte-webapp/src/views/layout/SideBar/SideBar.tsx
airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss
Show resolved
Hide resolved
airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.tsx
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.tsx
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/views/layout/SideBar/components/SidebarDropdownMenu.tsx
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/views/layout/SideBar/components/SidebarDropdownMenu.module.scss
Show resolved
Hide resolved
border: 0; | ||
border-radius: 10px; | ||
background-color: rgba(255, 255, 255, 20%); | ||
margin-top: 13px; |
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.
++ I'd bet we can use one of the variables
airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/views/layout/SideBar/components/SidebarDropdownMenu.module.scss
Outdated
Show resolved
Hide resolved
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! looks like the branch needs to be updated.
Regarding design, the menu should be next to the button and aligned with the button. Currently, the menu is aligned on the bottom side of the button. Is it necessary to implement additional behavior (placement) for the menu?
|
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.
Overall - lgtm.
But need to fix the rest of css variables.
Also lets wait for reply regarding centering the dropdown relatively control button
airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss
Outdated
Show resolved
Hide resolved
….module.scss Co-authored-by: Vladimir <[email protected]>
….module.scss Co-authored-by: Vladimir <[email protected]>
@matter-q the webapp is already using https://floating-ui.com/ for the tooltips, which is what it's most recommended over popper.js now days. That can allow you to align the menus in the right place. |
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.
All PR comments are fixed, tested locally previously
* Replaced sidebar menu with headlessui * Removed unnecessary tag li * Removed unnecessary Sidebar Popout * Changed export type * Added keyboard support * Removed styled-components * Removed commented code * Disabled ESLint rule css-modules/no-undef-class * Review fixes * Fixed shorthand property * Review fixes * Review fixes airbytehq#2 * Review fixes airbytehq#3 * Review fixes airbytehq#4 * Review fixes airbytehq#5 * Review fixes airbytehq#6 * Review fixes airbytehq#7 * Update airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss Co-authored-by: Vladimir <[email protected]> * Update airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss Co-authored-by: Vladimir <[email protected]> Co-authored-by: Vladimir <[email protected]>
* Replaced sidebar menu with headlessui * Removed unnecessary tag li * Removed unnecessary Sidebar Popout * Changed export type * Added keyboard support * Removed styled-components * Removed commented code * Disabled ESLint rule css-modules/no-undef-class * Review fixes * Fixed shorthand property * Review fixes * Review fixes airbytehq#2 * Review fixes airbytehq#3 * Review fixes airbytehq#4 * Review fixes airbytehq#5 * Review fixes airbytehq#6 * Review fixes airbytehq#7 * Update airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss Co-authored-by: Vladimir <[email protected]> * Update airbyte-webapp/src/packages/cloud/views/layout/SideBar/SideBar.module.scss Co-authored-by: Vladimir <[email protected]> Co-authored-by: Vladimir <[email protected]>
What
Closes #12617
How
Figma: https://www.figma.com/file/AxqFXuHo2BoTY0QY12hxm1/00_02_WEB-APP-COMPONENTS?node-id=5%3A335
Loom
OSS:
https://www.loom.com/share/440c0bc59df64711b6dae14641b1c795
Cloud:
https://www.loom.com/share/b22f1870ac3f4990b1856d74ad253bfb
Keyboard interaction:
https://www.loom.com/share/e484c92d953648938ca67f52a8ddfbf9