File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ $calendar-weekday-table-font-size: 11px !default;
67
67
$disabled-color : theming .get-color-from-palette ($foreground , disabled-text );
68
68
69
69
.mat-calendar-arrow {
70
- border-top-color : theming .get-color-from-palette ($foreground , icon );
70
+ fill : theming .get-color-from-palette ($foreground , icon );
71
71
}
72
72
73
73
// The prev/next buttons need a bit more specificity to
Original file line number Diff line number Diff line change 5
5
[attr.aria-describedby] ="_buttonDescriptionId "
6
6
cdkAriaLive ="polite ">
7
7
< span [attr.id] ="_buttonDescriptionId "> {{periodButtonText}}</ span >
8
- < div class ="mat-calendar-arrow "
9
- [class.mat-calendar-invert] ="calendar.currentView !== 'month' "> </ div >
8
+ < svg class ="mat-calendar-arrow " [class.mat-calendar-invert] ="calendar.currentView !== 'month' "
9
+ viewBox ="0 0 10 5 " focusable ="false ">
10
+ < polygon points ="0,0 5,5 10,0 "/>
11
+ </ svg >
10
12
</ button >
11
13
12
14
< div class ="mat-calendar-spacer "> </ div >
Original file line number Diff line number Diff line change 1
1
@use ' ../core/style/layout-common' ;
2
+ @use ' ../../cdk/a11y' ;
2
3
3
4
$calendar-padding : 8px !default ;
4
5
$calendar-header-divider-width : 1px !default ;
@@ -51,12 +52,8 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
51
52
52
53
.mat-calendar-arrow {
53
54
display : inline-block ;
54
- width : 0 ;
55
- height : 0 ;
56
- border-left : $calendar-arrow-size solid transparent ;
57
- border-right : $calendar-arrow-size solid transparent ;
58
- border-top-width : $calendar-arrow-size ;
59
- border-top-style : solid ;
55
+ width : $calendar-arrow-size * 2 ;
56
+ height : $calendar-arrow-size ;
60
57
margin : 0 0 0 $calendar-arrow-size ;
61
58
vertical-align : middle ;
62
59
@@ -67,6 +64,11 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
67
64
[dir = ' rtl' ] & {
68
65
margin : 0 $calendar-arrow-size 0 0 ;
69
66
}
67
+
68
+ @include a11y .high-contrast (active , off) {
69
+ // Setting the fill to `currentColor` doesn't work on Chromium browsers.
70
+ fill : CanvasText;
71
+ }
70
72
}
71
73
72
74
.mat-calendar-previous-button ,
You can’t perform that action at this time.
0 commit comments