-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[docs] Document the CSS API #12174
[docs] Document the CSS API #12174
Conversation
Awesome idea! |
Known issues:
|
@@ -40,7 +41,9 @@ export const styles = { | |||
cursor: 'default', | |||
}, | |||
}, | |||
/* Styles applied to the root element if `disabled={true}`. */ |
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 think that we are going to need a specific wording for the "internal state" rules: https://material-ui.com/customization/overrides/#overriding-with-classes
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.
People have to increase specificity in this case. It's important to be transparent about it.
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.
Yeah, I hadn't picked up on it there. I'm open to suggestions.
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.
Maybe we could have a Type
column with 'normal | internal state'
.
@mbrookes Yes, I do love the effort. I think that it's really important to have the CSS API documented. Great work! |
Closes #10389