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

[material-ui][Input] Remove unused classes from InputClasses interface #44987

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Jan 10, 2025

This PR removes unused classes from InputClasses interface, removed classes doesn't actually end up in dom and just present in interface, added tests to verify same

I found this while working on deprecating composed classes for Input component

@sai6855 sai6855 added bug 🐛 Something doesn't work package: material-ui Specific to @mui/material labels Jan 10, 2025
@mui-bot
Copy link

mui-bot commented Jan 10, 2025

Netlify deploy preview

https://deploy-preview-44987--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 54ab983

@sai6855 sai6855 requested a review from aarongarciah January 10, 2025 06:14
@aarongarciah aarongarciah requested review from siriwatknp and removed request for aarongarciah January 10, 2025 08:31
@sai6855 sai6855 added the component: text field This is the name of the generic UI component, not the React module! label Jan 10, 2025
/** Styles applied to the root element if the component is focused. */
focused: string;
/** Styles applied to the root element if `disabled={true}`. */
disabled: string;
/** Styles applied to the root element if color secondary. */
colorSecondary: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding the class to the DOM, I chose to remove it here. The fact that no users have reported this issue, even though it has likely existed for a long time (possibly since v5), suggests that it is not widely used. Therefore, I decided to remove the class instead of adding it to the DOM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: text field This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants