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(badge): move styles into the theme mixin #9999

Merged
merged 1 commit into from
Feb 20, 2018

Conversation

jelbourn
Copy link
Member

The badge styles were defined outside the mixin, meaning they were being included any time the file was imported.

The badge styles were defined _outside_ the mixin, meaning they were being included any time the file was imported.
@jelbourn jelbourn requested review from amcdnl and crisbeto February 18, 2018 00:27
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Feb 18, 2018
@jelbourn
Copy link
Member Author

jelbourn commented Feb 18, 2018

@crisbeto could a stylelint check capture this (concrete styles in a partial)? I've been seeing people make this mistake recently in Google, as well.

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM, I'll see what I can do for a stylelint rule.

@crisbeto crisbeto added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Feb 18, 2018
crisbeto added a commit to crisbeto/material2 that referenced this pull request Feb 18, 2018
Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to angular#9999.
Copy link
Contributor

@amcdnl amcdnl left a comment

Choose a reason for hiding this comment

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

LGTM

crisbeto added a commit to crisbeto/material2 that referenced this pull request Feb 19, 2018
Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to angular#9999.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Feb 19, 2018
Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to angular#9999.
@jelbourn jelbourn merged commit 00a6c90 into angular:master Feb 20, 2018
crisbeto added a commit to crisbeto/material2 that referenced this pull request Feb 20, 2018
Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to angular#9999.
tinayuangao pushed a commit that referenced this pull request Feb 20, 2018
The badge styles were defined _outside_ the mixin, meaning they were being included any time the file was imported.
@andrewseguin andrewseguin added the target: minor This PR is targeted for the next minor release label Feb 20, 2018
jelbourn pushed a commit that referenced this pull request Feb 26, 2018
#10003)

Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to #9999.
mmalerba pushed a commit to mmalerba/components that referenced this pull request Feb 26, 2018
angular#10003)

Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to angular#9999.
jelbourn pushed a commit to jelbourn/components that referenced this pull request Feb 27, 2018
angular#10003)

Adds a stylelint rule that will ensure that all of the CSS rules inside theme files are placed inside a mixin. This avoids style duplication whenever the file is imported.

Relates to angular#9999.
@jelbourn jelbourn deleted the badge-styles-wrong-place branch April 2, 2018 22:31
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants