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

[ButtonBase] Complete the focusVisible rename #11188

Merged

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Apr 30, 2018

The rename started with #11090. I should have taken the time to complete it in the first place. This way, we are fully consistent with the spec: https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo :)

Breaking change

<ButtonBase
- onKeyboardFocus={this.handleVisible}
+ onFocusVisible={this.handleVisible}

@oliviertassinari oliviertassinari merged commit 6ba2f29 into mui:v1-beta Apr 30, 2018
@oliviertassinari oliviertassinari deleted the focus-visible-complete branch April 30, 2018 22:21
@@ -121,7 +121,7 @@ declare module "material-ui/ButtonBase/ButtonBase" {
disableRipple?: boolean,
disabled?: boolean,
focusRipple?: boolean,
keyboardFocusedClassName?: string,
focusVisibleedClassName?: string,
Copy link

Choose a reason for hiding this comment

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

@oliviertassinari Looks like there is a typo here, it should be focusVisibleClassName.

Copy link
Member Author

Choose a reason for hiding this comment

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

@lucaas Oops, thank you for the review, the flow-typed/npm/material-ui_v1.x.x.js wasn't meant to be changed. It's generated by the flow-typed tools. Do you want to fix it? :)

Copy link

Choose a reason for hiding this comment

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

Sorry, not sure I can fix it. Was just browsing through the recent changes and stumbled upon it. Good work on the v1 release so far, looks very promising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants