views/month-cell: Set accessibility properties for overflow button

This uses the "toggle-button" role instead of GtkToggleButton widget,
as GtkToggleButton remains toggled after closing the month popover.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/598>
This commit is contained in:
Hari Rana
2026-03-01 19:35:46 +00:00
committed by Marge Bot
parent 55aa6b8cc5
commit caed41abdd
+6
View File
@@ -56,6 +56,7 @@ template $GcalMonthCell: Adw.BreakpointBin {
[overlay]
Button overflow_button {
accessible-role: toggle_button;
valign: end;
sensitive: false;
clicked => $overflow_button_clicked_cb(template) not-swapped;
@@ -65,6 +66,11 @@ template $GcalMonthCell: Adw.BreakpointBin {
margin-bottom: 2;
margin-end: 2;
accessibility {
has-popup: true;
labelled-by: overflow_inscription;
}
styles [
"flat",
"overflow",