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

fix(switch): Remove checkbox references from SCSS #352

Merged
merged 1 commit into from
Feb 27, 2017

Conversation

traviskaufman
Copy link
Contributor

  • Remove all references to mdc-checkbox in mdc-theme-dark mixin
  • Add mdc-switch-transition function and replace calls to
    mdc-checkbox-transition with that function
  • (techdebt) Update cross-env and cz-conventional-changelog
  • (techdebt) Add allowed scopes to validate-commit-msg config, and docs
    on how to add new scopes when a component is added.

Fixes #322

@@ -725,6 +725,10 @@ Concretely:
contains javascript, ensure that its component namespace is exported within
`material-components-web`, and it is registered with `mdc-auto-init`. Lastly, remember to add it
to `package.json` of `material-components-web`.
- Ensure that the correct **commit subject** for the package is added to the
Copy link
Contributor

@yeelan0319 yeelan0319 Feb 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean if this package is added to config.validate-commit-msg.scope.allowed then its commit message will be checked and if I wrote wrong commit message like "feat(mdc-grid-list): Implement mdc-grid-list (#47)" it won't go through?

What about cases if I forget to add this package to that config file, will that commit message go through? As far as what I am concerning, this should be an 'opt-out' instead 'opt-in' check.

Copy link
Contributor Author

@traviskaufman traviskaufman Feb 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean if this package is added to config.validate-commit-msg.scope.allowed then its commit message will be checked and if I wrote wrong commit message like "feat(mdc-grid-list): Implement mdc-grid-list (#47)" it won't go through?

That's correct!

What about cases if I forget to add this package to that config file, will that commit message go through?
It won't. So this ensures that either you:

  • Use a pre-defined scope
  • Add the new component scope to the config

@yeelan0319 yeelan0319 dismissed their stale review February 24, 2017 15:28

It should be a general comment not a request review

Copy link
Contributor

@sgomes sgomes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We may want to split out infra work into separate commits in the future though, for the sake of commit history sanity. No need to do it for this one, though, it would be a hassle to split it out now.

@sgomes
Copy link
Contributor

sgomes commented Feb 27, 2017

Approved!

@traviskaufman
Copy link
Contributor Author

SGTM I included it in here since it doesn't really break anything. Also I'm going to update the list to include grid-list so that merging in this change doesn't break #359

- Remove all references to mdc-checkbox in mdc-theme-dark mixin
- Add `mdc-switch-transition` function and replace calls to
  `mdc-checkbox-transition` with that function
- (techdebt) Update cross-env and cz-conventional-changelog
- (techdebt) Add allowed scopes to validate-commit-msg config, and docs
  on how to add new scopes when a component is added.

Fixes #322
@traviskaufman traviskaufman force-pushed the fix/rm-implicit-checkbox-sass-from-switch branch from 362b47f to 9f08315 Compare February 27, 2017 20:45
@traviskaufman traviskaufman merged commit ac88267 into master Feb 27, 2017
@traviskaufman traviskaufman deleted the fix/rm-implicit-checkbox-sass-from-switch branch February 27, 2017 20:52
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.

3 participants