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

Removed EuiKeyPadMenuItemButton in favor of just EuiKeyPadMenuItem #3062

Merged
merged 9 commits into from
Mar 19, 2020

Conversation

anishagg17
Copy link
Contributor

@anishagg17 anishagg17 commented Mar 12, 2020

Summary

Fixes: #2098
removed EuiKeyPadMenuItemButton

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in IE11 and Firefox
- [ ] Props have proper autodocs
- [ ] Added documentation examples

  • Added or updated jest tests
    - [ ] Checked for breaking changes and labeled appropriately
    - [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@myasonik
Copy link
Contributor

jenkins test this

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_3062/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

CHANGELOG.md Show resolved Hide resolved
src/components/key_pad_menu/key_pad_menu_item.test.tsx Outdated Show resolved Hide resolved
@anishagg17
Copy link
Contributor Author

All changes have been made

@cchaos
Copy link
Contributor

cchaos commented Mar 17, 2020

Jenkins, test this

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_3062/

@cchaos
Copy link
Contributor

cchaos commented Mar 17, 2020

This example text needs to be updated:

<p>
The KeyPadMenuItem component is a link by default, but you can swap it
out for a KeyPadMenuItemButton if you want <EuiCode>onClick</EuiCode>{' '}
behavior.
</p>

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Almost missed a major part of the issue. The rendered element needs to be a button tag if it's an onClick and an a tag if there's an href.

src-docs/src/views/key_pad_menu/key_pad_menu_example.js Outdated Show resolved Hide resolved
src/components/key_pad_menu/key_pad_menu_item.tsx Outdated Show resolved Hide resolved
@cchaos
Copy link
Contributor

cchaos commented Mar 19, 2020

jenkins, test this

CHANGELOG.md Outdated Show resolved Hide resolved
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_3062/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Once the changelog has been updated this should be good to go. Thanks 👍

@anishagg17
Copy link
Contributor Author

Change Log has been shifted to correct position

@cchaos
Copy link
Contributor

cchaos commented Mar 19, 2020

Jenkins, test this

@cchaos cchaos changed the title removed EuiKeyPadMenuItemButton Removed EuiKeyPadMenuItemButton in favor of just EuiKeyPadMenuItem Mar 19, 2020
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_3062/

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.

Get rid of EuiKeyPadMenuItemButton
4 participants