Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit c6b7d17

Browse files
Googlernshahan
authored andcommitted
Make comparison toggle label clickable
Switches to use an actual label instead of an adjacent span. PiperOrigin-RevId: 242632898
1 parent f141a54 commit c6b7d17

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

angular_components/lib/src/material_datepicker/comparison_range_editor.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
BSD-style license that can be found in the LICENSE file.
55
-->
66
<div class="comparison-toggle-section">
7-
<span class="compare-header">
8-
{{comparisonHeaderMsg}}
9-
</span>
107
<material-toggle class="comparison-toggle"
11-
[ariaLabel]="comparisonHeaderMsg"
8+
[label]="comparisonHeaderMsg"
129
[disabled]="!model.comparisonSupported"
1310
[(checked)]="comparisonEnabled">
1411
</material-toggle>

angular_components/lib/src/material_datepicker/comparison_range_editor.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
.comparison-toggle {
2323
display: inline-flex;
24+
width: 100%;
2425
}
2526

2627
.comparison-option-dropdown {

0 commit comments

Comments
 (0)