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(Menu): allow href and onClick to co-exist on a menu item #1779

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

booc0mtaco
Copy link
Contributor

Summary:

Remove this artificial constraint on Menu.Item components so that additional behavior can be attached to menu items along with an href with onClick. Like with an <a>, it will be up to the consumer to avoid undesired behavior.

Test Plan:

  • Wrote automated tests
  • CI tests / new tests are not applicable
  • Manually tested my changes, but I want to keep the details secret
  • Manually tested my changes, and here are the details:
    • Create an alpha publish and try out in edu-stack or traject as a sanity check if changes affect build or deploy, or are breaking, such as token changes, widely used component updates, hooks changes, and major dependency upgrades.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

size-limit report 📦

Path Size
components 97.05 KB (-0.08% 🔽)
styles 32.96 KB (0%)

@booc0mtaco booc0mtaco requested a review from a team October 7, 2023 00:55
Copy link
Contributor

@jeremiah-clothier jeremiah-clothier left a comment

Choose a reason for hiding this comment

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

Thanks for looking at this and fixing it!

@booc0mtaco booc0mtaco merged commit 971f189 into next Oct 9, 2023
5 checks passed
@booc0mtaco booc0mtaco deleted the aholloway/EFI-1400 branch October 9, 2023 22:10
@booc0mtaco booc0mtaco mentioned this pull request Oct 13, 2023
booc0mtaco added a commit that referenced this pull request Oct 13, 2023
## [13.6.0](v13.5.0...v13.6.0) (2023-10-13)


### Features

* **Menu:** allow href and onClick to co-exist on a menu item ([#1779](#1779)) ([971f189](971f189))
* **Popover:** allow focus upon popover panel open ([#1782](#1782)) ([76ddbc6](76ddbc6))


### Bug Fixes

* **Accordion:** handle multi-line text in headers ([#1783](#1783)) ([0b3c3e6](0b3c3e6))
* **Select:** expose render prop and default value param.s ([#1781](#1781)) ([f21e2b6](f21e2b6))
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