|
2 | 2 | // for details. All rights reserved. Use of this source code is governed by a |
3 | 3 | // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
|
5 | | -/// Change the color of the yes no buttons. |
6 | | -/// WARNING: be sure to pick a unique selector for the selector argument, as |
7 | | -/// this will be applied to all material-yes-no-buttons that match the given |
8 | | -/// selector. |
9 | | - |
10 | | -/// Change the color of the yes button |
11 | | -@mixin material-yes-button-color($selector, $value) { |
12 | | - ::ng-deep material-yes-no-buttons#{$selector} .btn-yes[raised], |
13 | | - ::ng-deep material-yes-no-buttons#{$selector} .btn-yes.btn:not([disabled]).highlighted[raised] { |
| 5 | +// Change the color of the yes button. |
| 6 | +// |
| 7 | +// Apply directly to the <material-yes-no-buttons> element. |
| 8 | +@mixin material-yes-button-color($value) { |
| 9 | + ::ng-deep .btn-yes[raised], |
| 10 | + ::ng-deep .btn-yes.btn:not([disabled]).highlighted[raised] { |
14 | 11 | background-color: $value; |
15 | 12 | } |
16 | 13 | } |
17 | 14 |
|
18 | | -/// Change the color of text in the yes button |
19 | | -@mixin material-yes-button-text-color($selector, $value) { |
20 | | - ::ng-deep material-yes-no-buttons#{$selector} .btn-yes { |
| 15 | +// Change the color of text in the yes button. |
| 16 | +// |
| 17 | +// Apply directly to the <material-yes-no-buttons> element. |
| 18 | +@mixin material-yes-button-text-color($value) { |
| 19 | + ::ng-deep .btn-yes { |
21 | 20 | color: $value; |
22 | 21 | } |
23 | 22 | } |
24 | 23 |
|
25 | | -/// Change the color of the no button |
26 | | -@mixin material-no-button-color($selector, $value) { |
27 | | - ::ng-deep material-yes-no-buttons#{$selector} .btn-no[raised] { |
| 24 | +// Change the color of the no button. |
| 25 | +// |
| 26 | +// Apply directly to the <material-yes-no-buttons> element. |
| 27 | +@mixin material-no-button-color($value) { |
| 28 | + ::ng-deep .btn-no[raised] { |
28 | 29 | background-color: $value; |
29 | 30 | } |
30 | 31 | } |
31 | 32 |
|
32 | | -/// Change the color of text in the no button |
33 | | -@mixin material-no-button-text-color($selector, $value) { |
34 | | - ::ng-deep material-yes-no-buttons#{$selector} .btn-no { |
| 33 | +// Change the color of text in the no button. |
| 34 | +// |
| 35 | +// Apply directly to the <material-yes-no-buttons> element. |
| 36 | +@mixin material-no-button-text-color($value) { |
| 37 | + ::ng-deep .btn-no { |
35 | 38 | color: $value; |
36 | 39 | } |
37 | 40 | } |
0 commit comments