-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
[Tab] iconPosition prop added in Tab
#28764
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
Conversation
|
@material-ui/core: parsed: +0.09% , gzip: +0.07% |
|
@oliviertassinari please review |
iconPosition added in Tabs
iconPosition added in TabsiconPosition prop added in Tab
|
@deepanshu2506 Thanks for the PR. However, I am hesitant about it because in v5 you can do it via By adding API for the sake of styling which does not include in the guideline, it increases the maintenance afford in the future. cc @mui-org/core for more opinions. |
|
@deepanshu2506 In your current implementation, |
|
So should this PR be carried forward or not? |
Let's wait for comments from other people for a few days. |
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.
In my opinion, the API is pretty common so I would say it's a nice addition. Both positions of the icons (start and top) can be found on the Material Design guidlines.
|
To move forward, I think this PR needs
|
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.
👍 This is a great improvement!
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
|
@deepanshu2506 it's a great first pull request on MUI 👌 Thank you for working on it! |
close #11653
added a prop to tab component that specifies the icon position as "top" , "left", "bottom" or "right"
Default position is top.