-
Notifications
You must be signed in to change notification settings - Fork 15
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
DropdownMenu: add onBackground variant #576
Conversation
🦋 Changeset detectedLatest commit: d11834a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
…/pharos into feature/onbackground-menu
const effect = () => { | ||
useEffect(() => { | ||
setTimeout(() => { | ||
document.querySelector('#my-button-on-background').click(); | ||
}, 700); | ||
}); | ||
}; | ||
effect(); |
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 think Storybook might have nicer APIs for doing things like this now...something for later since I see you're borrowing an existing pattern, unless you're so inclined to update the stories in at least this file to use it.
packages/pharos/src/components/dropdown-menu/pharos-dropdown-menu.wc.stories.jsx
Show resolved
Hide resolved
packages/pharos/src/components/dropdown-menu/pharos-dropdown-menu-item.scss
Outdated
Show resolved
Hide resolved
…enu-item.scss Co-authored-by: Dane Hillard <github@danehillard.com>
packages/pharos/src/components/dropdown-menu/PharosDropdownMenu.react.stories.jsx
Outdated
Show resolved
Hide resolved
packages/pharos/src/components/dropdown-menu/pharos-dropdown-menu.wc.stories.jsx
Outdated
Show resolved
Hide resolved
* feat(color): add new color * feat(menu-item): add on background variant * feat(menu): add on background variant * feat(menu): do not show stroke on on background menu * docs(changeset): change to minor version * feat(menu): update react story book * feat(menu): remove border for on background menu but add radius * Update packages/pharos/src/components/dropdown-menu/pharos-dropdown-menu-item.scss Co-authored-by: Dane Hillard <github@danehillard.com> * feat(menu): add disabled state for onbackground menu * feat(menu): update story book * Update packages/pharos/src/components/dropdown-menu/pharos-dropdown-menu.wc.stories.jsx * Update packages/pharos/src/components/dropdown-menu/PharosDropdownMenu.react.stories.jsx --------- Co-authored-by: Mike Iden <mike.iden@ithaka.org> Co-authored-by: Dane Hillard <github@danehillard.com>
This change: (check at least one)
Is this a breaking change? (check one)
Is the: (complete all)
What does this change address?
Create an on-background version of menu.
How does this change work?
Pass the on-background property to the menu items when rendering them.