-
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
refactor(button): Remove primary and accent modifier #1270
Conversation
21abf2c
to
252cbc6
Compare
Codecov Report
@@ Coverage Diff @@
## master #1270 +/- ##
======================================
Coverage 99.9% 99.9%
======================================
Files 69 69
Lines 3307 3307
Branches 407 407
======================================
Hits 3304 3304
Misses 3 3 Continue to review full report at Codecov.
|
packages/mdc-button/README.md
Outdated
``` | ||
| Class | Description | | ||
| --------------------- | ------------------------------------------------------- | | ||
| `mdc-button` | A text button that is flush with the surface. | |
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.
Should this be documented as Mandatory and the others documented as Optional?
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.
That's a great question!
IMHO, the html structure have already demonstrated this point, so I might not feel confused. But it should be useful to someone new to this library, I will add 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.
The reason I mentioned both "Mandatory" and "Optional" is it would match the practice e.g. in the FAB docs: https://github.com/material-components/material-components-web/tree/master/packages/mdc-fab#css-classes
f80c5b7
to
43e302d
Compare
BREAKING CHANGE: Remove support of `mdc-button--primary` and `mdc-button--accent` modifier classes. For custom and theme button implementation, use button mixins instead. See `demos.scss` for details.
43e302d
to
dafad7c
Compare
BREAKING CHANGE: Remove support of
mdc-button--primary
andmdc-button--accent
modifier classes. For custom and theme button implementation, use button mixins instead. Seedemos.scss
for details.