-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[IconButton] Add disable ripple props #15864
[IconButton] Add disable ripple props #15864
Conversation
Details of bundle changes.Comparing: c48ee61...1ab78a1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are ok. They are tested like in Button
. We can tackle the shallow -> mount switch in another PR.
label?: React.ReactNode; | ||
onChange?: (event: React.ChangeEvent<{ checked: boolean }>, value: any) => void; | ||
onClick?: React.EventHandler<any>; | ||
selected?: boolean; | ||
style?: React.CSSProperties; | ||
textColor?: string | 'secondary' | 'primary' | 'inherit'; | ||
value?: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary for the ripple?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was just moved down (sorted alphabetically), it's the value
prop the Tab
had before.
@@ -37,6 +37,26 @@ describe('<Tab />', () => { | |||
skip: ['componentProp'], | |||
})); | |||
|
|||
it('should have a ripple by default', () => { | |||
const wrapper = shallow(<Tab />); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are moving away from shallow tests. Can we use the mount API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #15864 (review)
@lychyi Much appreciated. Thanks. |
Fixes #15858
Also adds the same missing props to the
Tab
component