File tree Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Expand file tree Collapse file tree 3 files changed +9
-13
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
- fill : theming .get-color-from-palette ($foreground , icon );
70
+ border-top-color : 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
- < 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 >
8
+ < div class ="mat-calendar-arrow "
9
+ [class.mat-calendar-invert] ="calendar.currentView !== 'month' "> </ div >
12
10
</ button >
13
11
14
12
< 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' ;
3
2
4
3
$calendar-padding : 8px !default ;
5
4
$calendar-header-divider-width : 1px !default ;
@@ -52,8 +51,12 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
52
51
53
52
.mat-calendar-arrow {
54
53
display : inline-block ;
55
- width : $calendar-arrow-size * 2 ;
56
- height : $calendar-arrow-size ;
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 ;
57
60
margin : 0 0 0 $calendar-arrow-size ;
58
61
vertical-align : middle ;
59
62
@@ -64,11 +67,6 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
64
67
[dir = ' rtl' ] & {
65
68
margin : 0 $calendar-arrow-size 0 0 ;
66
69
}
67
-
68
- @include a11y .high-contrast (active , off) {
69
- // Setting the fill to `currentColor` doesn't work on Chromium browsers.
70
- fill : CanvasText;
71
- }
72
70
}
73
71
74
72
.mat-calendar-previous-button ,
You can’t perform that action at this time.
0 commit comments