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

[pickers] fix: to centering buttons text align for year-month picker when using some reset css #10982

Closed

Conversation

akagire
Copy link

@akagire akagire commented Nov 10, 2023

Why

When I was using x-date-pickers with the reset CSS library destyle.css, I realized that the alignment of the text inside the buttons used in the year and month picker components was unintentionally affected.

Reproduced repository: https://github.com/Akagire/mui-x-date-pickers-yearmonth-cal-shifting

What I did

To ensure the appearance is independent of the browser's default styles, I've applied text align to center those buttons.

@mui-bot
Copy link

mui-bot commented Nov 10, 2023

Deploy preview: https://deploy-preview-10982--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 49cf9ab

@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Nov 10, 2023
@akagire akagire closed this Apr 5, 2024
@akagire akagire deleted the fix/year-month-pickers-buttons-textalign branch April 9, 2024 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants