|
49 | 49 | $query
|
50 | 50 | );
|
51 | 51 |
|
| 52 | + @include _high-contrast-mode($query); |
| 53 | + |
52 | 54 | .mdc-evolution-list {
|
53 | 55 | @include _evolution-list-base($query: $query);
|
54 | 56 | }
|
|
839 | 841 |
|
840 | 842 | .mdc-evolution-list-item__primary-text {
|
841 | 843 | @include feature-targeting.targets($feat-color) {
|
842 |
| - @include theme.prop(color, $color); |
| 844 | + @include theme.property(color, $color); |
843 | 845 | }
|
844 | 846 | }
|
845 | 847 | }
|
|
852 | 854 |
|
853 | 855 | .mdc-evolution-list-item__secondary-text {
|
854 | 856 | @include feature-targeting.targets($feat-color) {
|
855 |
| - @include theme.prop(color, $color); |
| 857 | + @include theme.property(color, $color); |
856 | 858 | }
|
857 | 859 | }
|
858 | 860 | }
|
|
866 | 868 | .mdc-evolution-list-item--with-trailing-meta {
|
867 | 869 | .mdc-evolution-list-item__end {
|
868 | 870 | @include feature-targeting.targets($feat-color) {
|
869 |
| - @include theme.prop(color, $color); |
| 871 | + @include theme.property(color, $color); |
870 | 872 | }
|
871 | 873 | }
|
872 | 874 | }
|
|
878 | 880 | .mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start,
|
879 | 881 | .mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end {
|
880 | 882 | @include feature-targeting.targets($feat-color) {
|
881 |
| - @include theme.prop(color, $color); |
| 883 | + @include theme.property(color, $color); |
882 | 884 | }
|
883 | 885 | }
|
884 | 886 | }
|
|
889 | 891 | .mdc-evolution-list-item--with-leading-icon .mdc-evolution-list-item__start,
|
890 | 892 | .mdc-evolution-list-item--with-trailing-icon .mdc-evolution-list-item__end {
|
891 | 893 | @include feature-targeting.targets($feat-color) {
|
892 |
| - @include theme.prop(background-color, $color); |
| 894 | + @include theme.property(background-color, $color); |
893 | 895 | }
|
894 | 896 | }
|
895 | 897 | }
|
|
950 | 952 |
|
951 | 953 | .mdc-list-group__subheader {
|
952 | 954 | @include feature-targeting.targets($feat-color) {
|
953 |
| - @include theme.prop(color, $color); |
| 955 | + @include theme.property(color, $color); |
954 | 956 | }
|
955 | 957 | }
|
956 | 958 | }
|
|
960 | 962 |
|
961 | 963 | .mdc-evolution-list-divider {
|
962 | 964 | @include feature-targeting.targets($feat-color) {
|
963 |
| - @include theme.prop(background-color, $color); |
| 965 | + @include theme.property(background-color, $color); |
964 | 966 | }
|
965 | 967 | }
|
966 | 968 | }
|
|
1287 | 1289 | &.mdc-evolution-list-item--with-trailing-meta {
|
1288 | 1290 | .mdc-evolution-list-item__end {
|
1289 | 1291 | @include feature-targeting.targets($feat-color) {
|
1290 |
| - @include theme.prop(color, $color); |
| 1292 | + @include theme.property(color, $color); |
1291 | 1293 | }
|
1292 | 1294 | }
|
1293 | 1295 | }
|
|
1303 | 1305 | &.mdc-evolution-list-item--with-leading-icon {
|
1304 | 1306 | .mdc-evolution-list-item__start {
|
1305 | 1307 | @include feature-targeting.targets($feat-color) {
|
1306 |
| - @include theme.prop(color, $color); |
| 1308 | + @include theme.property(color, $color); |
1307 | 1309 | }
|
1308 | 1310 | }
|
1309 | 1311 | }
|
|
1312 | 1314 | &.mdc-evolution-list-item--with-trailing-icon {
|
1313 | 1315 | .mdc-evolution-list-item__end {
|
1314 | 1316 | @include feature-targeting.targets($feat-color) {
|
1315 |
| - @include theme.prop(color, $color); |
| 1317 | + @include theme.property(color, $color); |
1316 | 1318 | }
|
1317 | 1319 | }
|
1318 | 1320 | }
|
1319 | 1321 | }
|
1320 | 1322 | }
|
| 1323 | + |
| 1324 | +@mixin _high-contrast-mode($query: feature-targeting.all()) { |
| 1325 | + $feat-structure: feature-targeting.create-target($query, structure); |
| 1326 | + $feat-color: feature-targeting.create-target($query, color); |
| 1327 | + |
| 1328 | + @include dom-mixins.ie-high-contrast-mode { |
| 1329 | + .mdc-evolution-list-divider::after { |
| 1330 | + @include feature-targeting.targets($feat-structure) { |
| 1331 | + content: ''; |
| 1332 | + display: block; |
| 1333 | + border-bottom-width: 1px; |
| 1334 | + border-bottom-style: solid; |
| 1335 | + } |
| 1336 | + |
| 1337 | + @include feature-targeting.targets($feat-color) { |
| 1338 | + // Color ensures border is shown, but will be overridden by the browser. |
| 1339 | + @include theme.property(border-bottom-color, white); |
| 1340 | + } |
| 1341 | + } |
| 1342 | + } |
| 1343 | +} |
0 commit comments