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

refactor(button): Remove primary and accent modifier #1270

Merged
merged 1 commit into from
Sep 11, 2017

Conversation

yeelan0319
Copy link
Contributor

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.

@yeelan0319 yeelan0319 added this to the Button Improvement milestone Sep 8, 2017
@yeelan0319
Copy link
Contributor Author

Related to #991

I updated the doc to meet the best practice as in #1252

@yeelan0319 yeelan0319 mentioned this pull request Sep 8, 2017
14 tasks
@yeelan0319 yeelan0319 force-pushed the refactor/remove-theme-modifiers branch from 21abf2c to 252cbc6 Compare September 9, 2017 00:00
@codecov-io
Copy link

codecov-io commented Sep 9, 2017

Codecov Report

Merging #1270 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

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

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3eee2dc...dafad7c. Read the comment docs.

```
| Class | Description |
| --------------------- | ------------------------------------------------------- |
| `mdc-button` | A text button that is flush with the surface. |
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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

@yeelan0319 yeelan0319 force-pushed the refactor/remove-theme-modifiers branch 3 times, most recently from f80c5b7 to 43e302d Compare September 11, 2017 20:32
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.
@yeelan0319 yeelan0319 force-pushed the refactor/remove-theme-modifiers branch from 43e302d to dafad7c Compare September 11, 2017 20:45
@yeelan0319 yeelan0319 merged commit 3e3c869 into master Sep 11, 2017
@yeelan0319 yeelan0319 deleted the refactor/remove-theme-modifiers branch September 29, 2017 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants