Skip to content

Conversation

@crisbeto
Copy link
Member

Fixes the theme for the individual mat-option instances producing the wrong selector when it's nested inside a selector, e.g.

.dark-theme {
  @include angular-material-theme($dark-theme);
}

For reference:
screenshot at apr 16 14-12-48

…y when nested inside a selector

Fixes the theme for the individual `mat-option` instances producing the wrong selector when it's nested inside a selector, e.g.

```scss
.dark-theme {
  @include angular-material-theme($dark-theme);
}
```
@crisbeto crisbeto requested a review from kara as a code owner April 17, 2018 08:40
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 17, 2018
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release and removed pr: needs review labels Apr 17, 2018
@mmalerba mmalerba merged commit 1a60a7a into angular:master Apr 18, 2018
crisbeto added a commit to crisbeto/material2 that referenced this pull request Apr 18, 2018
…es inside a selector

Fixes selector for the disabled dates inside the calendar being wrong, if the theme is scoped under a selector, e.g.

```scss
.dark-theme {
  @include angular-material-theme($dark-theme);
}
```

Relates to angular#10889.
mmalerba pushed a commit that referenced this pull request Apr 19, 2018
…es inside a selector (#10904)

Fixes selector for the disabled dates inside the calendar being wrong, if the theme is scoped under a selector, e.g.

```scss
.dark-theme {
  @include angular-material-theme($dark-theme);
}
```

Relates to #10889.
crisbeto added a commit to crisbeto/material2 that referenced this pull request Apr 22, 2018
Replaces the `selector-nested-pattern-scoped` Stylelint rule with a new rule called `no-ampersand-beyond-selector-start`. The new rule will enforce that ampersands can only be used at the start of selectors in theme mixins. This will catch issues like angular#10889 and angular#10904 where having an ampersand anywhere else in the selector will work in most cases, but will break down once the mixin is wrapped in a selector.
andrewseguin pushed a commit that referenced this pull request Apr 26, 2018
…10949)

Replaces the `selector-nested-pattern-scoped` Stylelint rule with a new rule called `no-ampersand-beyond-selector-start`. The new rule will enforce that ampersands can only be used at the start of selectors in theme mixins. This will catch issues like #10889 and #10904 where having an ampersand anywhere else in the selector will work in most cases, but will break down once the mixin is wrapped in a selector.
@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: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants