-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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] Allow to customize the link component via theme #25331
Conversation
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.
Why did you modify the source of the Button? (Why is ButtonBase not enough?)
|
Well, now that I think about it modifying
Since we want the |
Why? This sounds counter-intuitive to me. Isn't the objective to replace all the links? |
No particular reason, I was following this
Both ways accomplishes this objective. Right? There is a single place to configure the Link component used by buttons. |
@vedadeepta Yes, I think that we should ignore Button because it's only one of the wrappers built on top of ButtonBase. It's only relevant as a use case. Props are also spreading so, whatever ButtonBase supports, Button does to. |
makes sense, will fix it tomorrow. |
3178de5
to
d37d676
Compare
d37d676
to
7dd22a1
Compare
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.
I have tried to improve the docs by creating a new section only for Routing. It seems to be a common pain point.
https://deploy-preview-25331--material-ui.netlify.app/guides/routing/
Co-authored-by: Olivier Tassinari <[email protected]>
any update on this PR? |
@vedadeepta I wanted to make a small change to the markdown before merging. To expose the theme structure without requiring developers to click anything. |
aight, makes sense |
@vedadeepta Done, thanks for dedicating care and time to this :) |
thanks for reviewing & improving the PR, appreciated. |
Fixes: #21533