Skip to content

[Button] Fix forward classes to ButtonBase#25072

Merged
oliviertassinari merged 1 commit into
mui:nextfrom
praveenkumar-kalidass:button-classes
Feb 23, 2021
Merged

[Button] Fix forward classes to ButtonBase#25072
oliviertassinari merged 1 commit into
mui:nextfrom
praveenkumar-kalidass:button-classes

Conversation

@praveenkumar-kalidass
Copy link
Copy Markdown
Contributor

What does it do?

Fixes classes not getting added to button element.

Why is it needed?

Forwards classes from Button component prop to ButtonBase component.

Related issue(s)/PR(s)

Closes #25011

@mui-pr-bot
Copy link
Copy Markdown

mui-pr-bot commented Feb 23, 2021

Details of bundle changes

Generated by 🚫 dangerJS against 631716f

@oliviertassinari oliviertassinari added type: bug It doesn't behave as expected. scope: button Changes related to the button. labels Feb 23, 2021
Copy link
Copy Markdown
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.

In practice, it means that developers can provide classes that aren't supposed to be accessible, but they are not documented, so I think that we are good.

@oliviertassinari oliviertassinari merged commit 4682e63 into mui:next Feb 23, 2021
@oliviertassinari
Copy link
Copy Markdown
Member

@praveenkumar-kalidass Thanks

@oliviertassinari
Copy link
Copy Markdown
Member

Appreciate the extra test case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: button Changes related to the button. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Button] Disabled classes not added to the button

3 participants