Skip to content
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: new popoverContent feature for MenuButton, plus UserProfileMenuButton #2414

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

benschell-okta
Copy link
Contributor

OKTA-826088

Summary

  • Refactored Button, MenuButton (and associated bits) into a Buttons folder
  • Split out BaseButton, BaseMenuButton to be used internally for other button-like mechanisms
  • Introduced new popoverContent prop for *MenuButton to allow a generic popover instead of a Mui Menu
  • Introduced new UserProfileMenuButton which uses BaseMenuButton to render the existing UserProfile presentational component.

Testing & Screenshots

  • I have confirmed this change with my designer and the Odyssey Design Team.

@benschell-okta benschell-okta requested a review from a team as a code owner November 15, 2024 15:20
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, moving ../Button to ../Buttons/Button meant I had to update lots of references. This PR is therefore a bit cluttered, but there should be no material changes outside of the Buttons and UserProfileMenuButton

@@ -174,31 +215,52 @@ const MenuButton = ({
id={`${uniqueId}-button`}
isDisabled={isDisabled}
label={buttonLabel}
children={buttonChildren}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NON-BLOCKING
I'd like to fix the types for if children or label, but not in this PR. Bryan's working on this already.

My comment is here for historical purposes.

@oktapp-aperture-okta oktapp-aperture-okta bot merged commit 5647ec9 into main Nov 19, 2024
1 check passed
@oktapp-aperture-okta oktapp-aperture-okta bot deleted the bs-OKTA-826088-button-enhancements branch November 19, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants