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

[RFR] Also pass the dense prop from the Menu to the DashboardMenuItem #4241

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

steurt
Copy link
Contributor

@steurt steurt commented Jan 3, 2020

Issue
When I was applying custom styling to the sidebar menu, I noticed that the Dashboard menu item didn't always have the same styling as the other menu items.

Cause
When looking in detail, I discovered that the regular menu items dynamically get a dense value set, but that the DashboardMenuItem doesn't get this value. Besides that it configures the dense prop to always be true.

Changes described
I modified the DashboardMenuItem so it doesn't configure the dense prop itself, but it instead relies on the props passed. I changed the Menu so it passes the dense prop to the DashboardMenuItem just like it does for the other menu items.

Copy link
Collaborator

@djhi djhi 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 the PR and the detailed explanation :)

@djhi djhi added this to the 3.1.2 milestone Jan 6, 2020
@djhi djhi merged commit 31f8aee into marmelab:next Jan 6, 2020
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