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(decorator): add onContextMenu to decorator #1102

Merged
merged 5 commits into from
Sep 13, 2021

Conversation

paul-balchin-ibm
Copy link
Contributor

@paul-balchin-ibm paul-balchin-ibm commented Sep 10, 2021

Pull request - Added onContextMenu callback function to remaining states

Proposed changes

  • Added onContextMenu callback function if decorator is an href
  • Added onContextMenu callback function if decorator is the default, non-interactive span

Testing instructions

  • Regardless of the type of Decorator rendered (span, href, or button), if an onContextMenu prop is defined, a callback should be triggered.

@paul-balchin-ibm paul-balchin-ibm requested a review from a team as a code owner September 10, 2021 12:53
@paul-balchin-ibm paul-balchin-ibm requested review from areddon and removed request for a team September 10, 2021 12:53
@netlify
Copy link

netlify bot commented Sep 10, 2021

✔️ Deploy Preview for ibm-security ready!

🔨 Explore the source changes: de80f41

🔍 Inspect the deploy log: https://app.netlify.com/sites/ibm-security/deploys/613b55390cf2010007a8c7d2

😎 Browse the preview: https://deploy-preview-1102--ibm-security.netlify.app/

@netlify
Copy link

netlify bot commented Sep 10, 2021

✔️ Deploy Preview for ibm-security ready!

🔨 Explore the source changes: 7a2fbcd

🔍 Inspect the deploy log: https://app.netlify.com/sites/ibm-security/deploys/613f42420ac93300072ebbef

😎 Browse the preview: https://deploy-preview-1102--ibm-security.netlify.app

@areddon areddon requested a review from SimonFinney September 10, 2021 13:26
Copy link
Contributor

@SimonFinney SimonFinney left a comment

Choose a reason for hiding this comment

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

LGTM — thanks! I've one suggestion for consolidating the unit test imports.

paul-balchin-ibm and others added 2 commits September 13, 2021 08:21
…t.js

Co-authored-by: Simon Finney <simonjfinney@gmail.com>
…t.js

Co-authored-by: Simon Finney <simonjfinney@gmail.com>
@paul-balchin-ibm
Copy link
Contributor Author

LGTM — thanks! I've one suggestion for consolidating the unit test imports.

Of course. Thanks for seeing that.

@kodiakhq kodiakhq bot merged commit 46f29da into dev Sep 13, 2021
@kodiakhq kodiakhq bot deleted the add-oncontextmenu-to-decorator branch September 13, 2021 12:46
SimonFinney pushed a commit that referenced this pull request Sep 13, 2021
# [1.45.0-prerelease.7](v1.45.0-prerelease.6...v1.45.0-prerelease.7) (2021-09-13)

### Features

* **decorator:** add onContextMenu to decorator ([#1102](#1102)) ([46f29da](46f29da))
@SimonFinney
Copy link
Contributor

🎉 This PR is included in version 1.45.0-prerelease.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

SimonFinney pushed a commit that referenced this pull request Oct 13, 2021
# [1.46.0](v1.45.0...v1.46.0) (2021-10-13)

### Bug Fixes

* **decorator:** fix icon `fill` styles ([#1103](#1103)) ([dea56f9](dea56f9))
* **nav-item-link:** remove fixed height to prevent issues with multi-line text ([#1085](#1085)) ([0e0f542](0e0f542))
* **navitem:** Remove blue lines in safari ([#1106](#1106)) ([5cae584](5cae584))
* **storybook:** Update addon-storysource for renamed Layout Modules ([#1108](#1108)) ([8a3933a](8a3933a))
* **tearsheet-small:** update maximum size styles ([#968](#968)) ([d8bc055](d8bc055))
* **toolbar:** vertical icon alignment for multi-line labels ([#1089](#1089)) ([0183591](0183591))

### Features

* **decorator:** add onContextMenu to decorator ([#1102](#1102)) ([46f29da](46f29da))
* **deps:** add remaining Carbon dependencies ([#1101](#1101)) ([c5bd47b](c5bd47b))
* **focus-trap-react:** upgrade package and fix dependency ([#1111](#1111)) ([ffe9c8a](ffe9c8a))

### Reverts

* Revert "Revert "feature(ICA): Add optional information and iconButton prop (#1110)" (#1115)" (#1116) ([92bac13](92bac13)), closes [#1110](#1110) [#1115](#1115) [#1116](#1116)
* Revert "feature(ICA): Add optional information and iconButton prop (#1110)" (#1115) ([86ad1c7](86ad1c7)), closes [#1110](#1110) [#1115](#1115)
@SimonFinney
Copy link
Contributor

🎉 This PR is included in version 1.46.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants