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

Fix SimpleList showing ListItem as button even though linkType is false #3543

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

b-raines
Copy link
Contributor

When linkType is set to false, the ListItems are still styled as buttons. This seems like undesired behavior for a non-interactive item. Instead, do not style as buttons if linkType is false (or null).

Another solution would be to add a new prop to List to explicitly declare whether ListItems were styled as buttons if there was concern about altering existing behavior.

@fzaninotto fzaninotto changed the title Disable ListItem button types when no linkType Fix SimpleList showing ListItem as button even though linkType is false Aug 20, 2019
@fzaninotto fzaninotto merged commit 80fb03d into marmelab:master Aug 20, 2019
@fzaninotto
Copy link
Member

Thanks!

@fzaninotto fzaninotto added this to the 2.9.6 milestone Aug 20, 2019
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