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

feat(feature-targeting): target top-level styles for elevation, ripple, #4383

Merged
merged 5 commits into from
Feb 12, 2019

Conversation

mmalerba
Copy link
Collaborator

@mmalerba mmalerba commented Feb 8, 2019

theme, and typography (part of #4227)

@@ -25,6 +25,23 @@
@import "@material/theme/variables";
@import "./variables";

@mixin mdc-elevation-top-level($query: mdc-feature-all()) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For a couple of them I had to do mdc-<package>-top-level since mdc-<package> was taken. Should I go back and change them all to match for consistency?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's a fair point; it'd probably be less confusing that way (esp. for stuff like mdc-theme).

Also, do you think mdc-foo-baseline would work for naming rather than mdc-foo-top-level?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That would work, though in the case of typography people might think it has something to do with baseline alignment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

per slcak discussion, going with mdc-foo-core-styles

packages/mdc-elevation/_mixins.scss Show resolved Hide resolved
@@ -25,6 +25,23 @@
@import "@material/theme/variables";
@import "./variables";

@mixin mdc-elevation-top-level($query: mdc-feature-all()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

That's a fair point; it'd probably be less confusing that way (esp. for stuff like mdc-theme).

Also, do you think mdc-foo-baseline would work for naming rather than mdc-foo-top-level?

$feat-color: mdc-feature-create-target($query, color);

:root {
@include mdc-feature-targets($feat-color) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason this feature-targets is outside the @each but the ones below are inside?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This one doesn't have any selectors inside of it, just properties

@codecov-io
Copy link

codecov-io commented Feb 11, 2019

Codecov Report

Merging #4383 into master will increase coverage by 0.33%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4383      +/-   ##
=========================================
+ Coverage   98.56%   98.9%   +0.33%     
=========================================
  Files         130     130              
  Lines        5731    5731              
  Branches      763     763              
=========================================
+ Hits         5649    5668      +19     
+ Misses         82      63      -19
Impacted Files Coverage Δ
packages/mdc-checkbox/index.js 100% <0%> (+1.2%) ⬆️
packages/mdc-ripple/index.js 100% <0%> (+2.08%) ⬆️
packages/mdc-auto-init/index.js 100% <0%> (+2.77%) ⬆️
packages/mdc-tab/index.js 96.49% <0%> (+3.5%) ⬆️
packages/mdc-ripple/util.js 100% <0%> (+3.5%) ⬆️
packages/mdc-base/component.js 100% <0%> (+4.16%) ⬆️
packages/mdc-switch/index.js 97.95% <0%> (+6.12%) ⬆️
packages/mdc-tabs/tab/index.js 100% <0%> (+9.09%) ⬆️
packages/mdc-radio/index.js 97.43% <0%> (+12.82%) ⬆️

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 49f62de...e9ef272. Read the comment docs.

@kfranqueiro kfranqueiro merged commit 4c2a63c into material-components:master Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants