mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
a11y: calendar: full date string should be navigable
Also moved the set of label_actor of the menu some lines before, to improve readability. https://bugzilla.gnome.org/show_bug.cgi?id=706903
This commit is contained in:
parent
4e80758970
commit
a4c1eb12b4
2 changed files with 7 additions and 3 deletions
|
|
@ -1261,6 +1261,10 @@ StScrollBar StButton#vhandle:active {
|
|||
color: #eeeeec;
|
||||
}
|
||||
|
||||
.datemenu-date-label:focus {
|
||||
background-color: #999999;
|
||||
}
|
||||
|
||||
.calendar-day-base {
|
||||
font-size: 9pt;
|
||||
text-align: center;
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ const DateMenuButton = new Lang.Class({
|
|||
this.parent(menuAlignment);
|
||||
|
||||
this._clockDisplay = new St.Label({ y_align: Clutter.ActorAlign.CENTER });
|
||||
this.actor.label_actor = this._clockDisplay;
|
||||
this.actor.add_actor(this._clockDisplay);
|
||||
this.actor.add_style_class_name ('clock-display');
|
||||
|
||||
|
|
@ -62,9 +63,8 @@ const DateMenuButton = new Lang.Class({
|
|||
hbox.add(vbox);
|
||||
|
||||
// Date
|
||||
this._date = new St.Label();
|
||||
this.actor.label_actor = this._clockDisplay;
|
||||
this._date.style_class = 'datemenu-date-label';
|
||||
this._date = new St.Label({ style_class: 'datemenu-date-label',
|
||||
can_focus: true });
|
||||
vbox.add(this._date);
|
||||
|
||||
this._eventList = new Calendar.EventsList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue