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>;
|
visible: bind $get_split_choice_visible(template.show-heading, template.split-month-year) as <bool>;
|
||||||
notify::value => $split_multi_choice_changed() swapped;
|
notify::value => $split_multi_choice_changed() swapped;
|
||||||
|
|
||||||
|
accessibility {
|
||||||
|
label: _("Month");
|
||||||
|
}
|
||||||
|
|
||||||
layout {
|
layout {
|
||||||
column: 0;
|
column: 0;
|
||||||
row: 0;
|
row: 0;
|
||||||
@@ -29,6 +33,10 @@ template $GcalDateChooser: Adw.Bin {
|
|||||||
value: 0;
|
value: 0;
|
||||||
notify::value => $split_multi_choice_changed() swapped;
|
notify::value => $split_multi_choice_changed() swapped;
|
||||||
|
|
||||||
|
accessibility {
|
||||||
|
label: _("Year");
|
||||||
|
}
|
||||||
|
|
||||||
layout {
|
layout {
|
||||||
column: 1;
|
column: 1;
|
||||||
row: 0;
|
row: 0;
|
||||||
@@ -45,6 +53,10 @@ template $GcalDateChooser: Adw.Bin {
|
|||||||
value: 0;
|
value: 0;
|
||||||
notify::value => $combined_multi_choice_changed() swapped;
|
notify::value => $combined_multi_choice_changed() swapped;
|
||||||
|
|
||||||
|
accessibility {
|
||||||
|
label: _("Month");
|
||||||
|
}
|
||||||
|
|
||||||
layout {
|
layout {
|
||||||
column: 0;
|
column: 0;
|
||||||
column-span: 2;
|
column-span: 2;
|
||||||
@@ -75,6 +87,10 @@ Popover popover {
|
|||||||
max-value: bind month_choice.max-value bidirectional;
|
max-value: bind month_choice.max-value bidirectional;
|
||||||
animate: bind month_choice.animate bidirectional;
|
animate: bind month_choice.animate bidirectional;
|
||||||
value: bind month_choice.value bidirectional;
|
value: bind month_choice.value bidirectional;
|
||||||
|
|
||||||
|
accessibility {
|
||||||
|
label: _("Month");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$GcalMultiChoice {
|
$GcalMultiChoice {
|
||||||
@@ -82,6 +98,10 @@ Popover popover {
|
|||||||
max-value: bind year_choice.max-value bidirectional;
|
max-value: bind year_choice.max-value bidirectional;
|
||||||
animate: bind year_choice.animate bidirectional;
|
animate: bind year_choice.animate bidirectional;
|
||||||
value: bind year_choice.value bidirectional;
|
value: bind year_choice.value bidirectional;
|
||||||
|
|
||||||
|
accessibility {
|
||||||
|
label: _("Year");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
|
|||||||
Reference in New Issue
Block a user