-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(select): Update README to new format #2589
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2589 +/- ##
=======================================
Coverage 98.48% 98.48%
=======================================
Files 98 98
Lines 4230 4230
Branches 537 537
=======================================
Hits 4166 4166
Misses 64 64 Continue to review full report at Codecov.
|
6cdb18e
to
932f8cf
Compare
Disregard the branch name; since we decided to move forward with #2578 instead, I've repurposed this PR to simply update the Select README to the new format, since I had done it in this PR anyway. |
932f8cf
to
c79523a
Compare
packages/mdc-select/README.md
Outdated
```scss | ||
@import "@material/select/mdc-select"; | ||
|
||
// Invoke mixins in the context of a custom class applied to the component's root element: |
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.
Is this necessary to get the default select? If not, it doesn't need to go under Basic Usage.
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 had done this as a replacement for the remark about including the mixins within a .foo-select
custom class selector in the Sass mixins section, but I can put that back.
packages/mdc-select/README.md
Outdated
@@ -148,6 +171,8 @@ Since MDC Select uses native `<select>` and `<option>` elements, simply add the | |||
</div> | |||
``` | |||
|
|||
## Style Customization | |||
|
|||
#### CSS Classes | |||
|
|||
| Class | Description | |
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 these were missing from before: mdc-select--disabled
, mdc-select__native-control
This also updates the README to follow our new structure, since I needed to document the necessary imports now anyway.
BREAKING CHANGE: mdc-floating-label and mdc-line-ripple styles must now be explicitly imported