Skip to content

Relative href values in EuiNavDrawer example#2154

Merged
thompsongl merged 1 commit intoelastic:masterfrom
thompsongl:2094-nav-drawer-links
Jul 22, 2019
Merged

Relative href values in EuiNavDrawer example#2154
thompsongl merged 1 commit intoelastic:masterfrom
thompsongl:2094-nav-drawer-links

Conversation

@thompsongl
Copy link
Contributor

Summary

Closes #2094, although the outcome proposed in the issue isn't possible at this time. EuiNavDrawer can't take onClick events at every level without HTML validation warnings related to button as child of button. This simply changes the href target to be correctly relative, making nav item click events essentially do nothing (rather than 404).

Checklist

- [ ] This was checked in mobile
- [ ] This was checked in IE11
- [ ] This was checked in dark mode
- [ ] Any props added have proper autodocs
- [ ] Documentation examples were added
- [ ] A changelog entry exists and is marked appropriately
- [ ] This was checked for breaking changes and labeled appropriately
- [ ] Jest tests were updated or added to match the most common scenarios
- [ ] This was checked against keyboard-only and screenreader scenarios
- [ ] This required updates to Framer X components

@thompsongl thompsongl added the documentation Issues or PRs that only affect documentation - will not need changelog entries label Jul 22, 2019
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

Changes LGTM

@thompsongl thompsongl merged commit afedd0e into elastic:master Jul 22, 2019
@thompsongl thompsongl deleted the 2094-nav-drawer-links branch July 22, 2019 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Issues or PRs that only affect documentation - will not need changelog entries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Links broken on Docs Nav Drawer Demo

2 participants