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

[ListItem] Take the focusVisibleClassName property into account #11451

Merged
merged 4 commits into from May 19, 2018

Conversation

rdemirov
Copy link
Contributor

@rdemirov rdemirov commented May 17, 2018

This pull request merges the focusVisible css class with the focusVisibleClassName property

Closes #11432

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: list This is the name of the generic UI component, not the React module! labels May 17, 2018
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

It's a good start :). Could you rebase on master, add a test case?
Also, don't forget that we need a green build to merge the pull-request

@oliviertassinari oliviertassinari changed the title 11432 [ListItem] Take the focusVisibleClassName property into account May 17, 2018
@@ -105,7 +106,7 @@ class ListItem extends React.Component {

if (button) {
componentProps.component = componentProp || 'div';
componentProps.focusVisibleClassName = classes.focusVisible;
componentProps.focusVisibleClassName = classnames(classes.focusVisible, focusVisibleClassName);
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be classNames(...) (capitalized N).

@oliviertassinari oliviertassinari self-assigned this May 19, 2018
@oliviertassinari
Copy link
Member

@rdemirov Thank you!

@franklixuefei
Copy link
Contributor

@rdemirov You forgot to update the Typescript definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: list This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants