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][FilledInput] Remove unused classes from FilledInputClasses interface #44990

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 used class from FilledInputClasses interface, removed class isn't present in DOM but present in interface.

I found this while working on deprecation of FilledInput composed classes

@sai6855 sai6855 added bug 🐛 Something doesn't work typescript 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-44990--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 238d189

@@ -5,8 +5,6 @@ import { inputBaseClasses } from '../InputBase';
export interface FilledInputClasses {
/** Styles applied to the root element. */
root: 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 package: material-ui Specific to @mui/material typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants