-
Notifications
You must be signed in to change notification settings - Fork 30
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!: added Menu component family using Reach UI #1163
Conversation
2d53cb8
to
52b66c3
Compare
Codecov Report
@@ Coverage Diff @@
## main #1163 +/- ##
==========================================
+ Coverage 69.18% 69.36% +0.17%
==========================================
Files 283 289 +6
Lines 2233 2246 +13
Branches 784 786 +2
==========================================
+ Hits 1545 1558 +13
+ Misses 678 677 -1
- Partials 10 11 +1
|
e2f6aba
to
0ff04e9
Compare
import { listItemStyles } from './styles'; | ||
|
||
export const MenuLink = styled(ReachMenuLink)` | ||
${listItemStyles} |
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.
ooh didn't know we can style this way! thx for teaching me
I think it'd be helpful for the submenus' |
&[data-focus-visible-added] { | ||
box-shadow: 0 0 0 2px ${colors.black}; | ||
} |
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.
📬Published Alpha Packages:@codecademy/gamut-labs@5.7.3-alpha.0be953.0 |
🚀 Styleguide deploy preview ready! |
Closing to keep my PR queue small. |
Overview
PR Checklist
Description
Directly uses a large portion of Reach UI's Menu Button family, with the addition of a
MenuButtonToggle
for the chevron icon expando logic.Slack thread on avoiding Popover directly
Renames the old
SideMenu
component'sMenuItem
toSideMenuItem
to distinguish it from theMenuItem
here.See also https://reach.tech/menu-button for now the menu button normally behaves. I was surprised that you can't use tabbing inside it when open, just up/down arrow keys...