Skip to content

Conversation

@mbrookes
Copy link
Member

Closes #10389

@mbrookes mbrookes added the docs Improvements or additions to the documentation. label Jul 17, 2018
@oliviertassinari
Copy link
Member

Awesome idea!

@mbrookes
Copy link
Member Author

mbrookes commented Jul 18, 2018

Known issues:

  • Grid & Paper have some programatically generated class keys that are not documented (but these are all self explanatory).

  • Select styles are imported from NativeSelect, so are not documented. (Fixed)

  • Slider empty styles used to trigger JSS nested styles not documented. (Best effort)

cursor: 'default',
},
},
/* Styles applied to the root element if `disabled={true}`. */
Copy link
Member

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

Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@oliviertassinari oliviertassinari Jul 18, 2018

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'.

@oliviertassinari oliviertassinari merged commit a207808 into mui:master Jul 19, 2018
@oliviertassinari
Copy link
Member

oliviertassinari commented Jul 19, 2018

@mbrookes Yes, I do love the effort. I think that it's really important to have the CSS API documented. Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants