common/date-chooser: Add accessible labels to GcalMultiChoice widgets
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/603>
This commit is contained in:
@@ -14,6 +14,10 @@ template $GcalDateChooser: Adw.Bin {
|
||||
visible: bind $get_split_choice_visible(template.show-heading, template.split-month-year) as <bool>;
|
||||
notify::value => $split_multi_choice_changed() swapped;
|
||||
|
||||
accessibility {
|
||||
label: _("Month");
|
||||
}
|
||||
|
||||
layout {
|
||||
column: 0;
|
||||
row: 0;
|
||||
@@ -29,6 +33,10 @@ template $GcalDateChooser: Adw.Bin {
|
||||
value: 0;
|
||||
notify::value => $split_multi_choice_changed() swapped;
|
||||
|
||||
accessibility {
|
||||
label: _("Year");
|
||||
}
|
||||
|
||||
layout {
|
||||
column: 1;
|
||||
row: 0;
|
||||
@@ -45,6 +53,10 @@ template $GcalDateChooser: Adw.Bin {
|
||||
value: 0;
|
||||
notify::value => $combined_multi_choice_changed() swapped;
|
||||
|
||||
accessibility {
|
||||
label: _("Month");
|
||||
}
|
||||
|
||||
layout {
|
||||
column: 0;
|
||||
column-span: 2;
|
||||
@@ -75,6 +87,10 @@ Popover popover {
|
||||
max-value: bind month_choice.max-value bidirectional;
|
||||
animate: bind month_choice.animate bidirectional;
|
||||
value: bind month_choice.value bidirectional;
|
||||
|
||||
accessibility {
|
||||
label: _("Month");
|
||||
}
|
||||
}
|
||||
|
||||
$GcalMultiChoice {
|
||||
@@ -82,6 +98,10 @@ Popover popover {
|
||||
max-value: bind year_choice.max-value bidirectional;
|
||||
animate: bind year_choice.animate bidirectional;
|
||||
value: bind year_choice.value bidirectional;
|
||||
|
||||
accessibility {
|
||||
label: _("Year");
|
||||
}
|
||||
}
|
||||
|
||||
styles [
|
||||
|
||||
Reference in New Issue
Block a user