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:
Alejandro Piñeiro 2013-08-27 15:44:46 +02:00
parent 4e80758970
commit a4c1eb12b4
2 changed files with 7 additions and 3 deletions

View File

@ -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;

View File

@ -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();