Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

feat: wrap contents with a link element when href or onClick is given - #354

Merged
Mohammer5 merged 3 commits into
masterfrom
Menu_item_as_link
Jul 19, 2019
Merged

feat: wrap contents with a link element when href or onClick is given#354
Mohammer5 merged 3 commits into
masterfrom
Menu_item_as_link

Conversation

@Mohammer5

Copy link
Copy Markdown
Contributor

With this change the navigation will be semantically correct, rendering a elements when there's either a href or an onClick callback.
Said element will be a span when neither if given (i. e. so a Switch can be renderen inside a MenuItem)

This PR will also add a height value to the Switch so it's not cut off anymore when inside elements with overflow: hidden (see current Menu > Default storybook demo)

@Mohammer5
Mohammer5 requested a review from varl July 19, 2019 14:08
@Mohammer5
Mohammer5 merged commit 9e8d3f0 into master Jul 19, 2019
@Mohammer5
Mohammer5 deleted the Menu_item_as_link branch July 19, 2019 14:51
dhis2-bot pushed a commit that referenced this pull request Jul 19, 2019
# [3.7.0](dhis2/ui@v3.6.3...v3.7.0) (2019-07-19)

### Features

* wrap contents with a link element when href or onClick is given ([#354](dhis2/ui#354)) ([9e8d3f0](dhis2/ui@9e8d3f0))
@dhis2-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants