After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682366 - a11y: new label/role review of the ui-elements required
a11y: new label/role review of the ui-elements required
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on: 682523
Blocks:
 
 
Reported: 2012-08-21 15:23 UTC by Alejandro Piñeiro Iglesias (IRC: infapi00)
Modified: 2013-12-11 12:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Exposing percentage label (906 bytes, patch)
2012-08-21 15:25 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
committed Details | Review
Proper state for items with a dot (1.02 KB, patch)
2012-08-21 15:27 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
committed Details | Review
Expose toggle role if button is in toggle mode (1.81 KB, patch)
2012-08-24 15:30 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
committed Details | Review
set a proper label for the show applications dash button (1.55 KB, patch)
2012-08-24 15:31 UTC, Alejandro Piñeiro Iglesias (IRC: infapi00)
reviewed Details | Review

Description Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-08-21 15:23:40 UTC
After bug 667439 first patches committed, some ui elements became accessible. In some cases they lack or the proper name/label or the proper role. So creating this bug to track those cases, as I feel that they are somewhat offtopic for bug 667439.
Comment 1 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-08-21 15:25:48 UTC
Created attachment 222032 [details] [review]
Exposing percentage label

As I said on the comment, ideally we want to expose two different labels (this also had become a need for other bugs too). But while I work on that, I think that at least exposing the percentage level will be enough (we already have some context as that percentage is exposed on the power menu)
Comment 2 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-08-21 15:27:42 UTC
Created attachment 222034 [details] [review]
Proper state for items with a dot

This state is used to indicate that that item is checked, so "selected". The poster boy here is the current wifi selected. Without this patch the only difference between the selected wifi and the rest of available wifis are that current wifi is grayed out.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-08-21 15:54:47 UTC
Review of attachment 222034 [details] [review]:

Yes.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-08-21 15:55:03 UTC
Review of attachment 222032 [details] [review]:

Sure.
Comment 5 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-08-23 09:23:57 UTC
After all the changes on the UI I have found some more ui-elements to review:

 * The new element at the end of the Dash (replacement for the All programs tab) doesn't have a label.
 * Notifications are now keyboard navigable, but also lack a label (but I will manage that on bug 677229)
Comment 6 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-08-24 15:30:20 UTC
Created attachment 222347 [details] [review]
Expose toggle role if button is in toggle mode

It seems that StButton has a toggle mode now. It would be convenient to expose ATK_ROLE_TOGGLE_BUTTON if it is in that mode.
Comment 7 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-08-24 15:31:02 UTC
Created attachment 222348 [details] [review]
set a proper label for the show applications dash button

This was easy because the button already had a string with the name.
Comment 8 Florian Müllner 2012-08-24 16:23:55 UTC
Review of attachment 222347 [details] [review]:

Sure - on a side note, the toggle mode is not at all a new addition, looks like we just overlooked it earlier :-)

::: src/st/st-button.c
@@ +785,3 @@
+    atk_object_set_role (accessible, ATK_ROLE_TOGGLE_BUTTON);
+  else
+    atk_object_set_role (accessible, ATK_ROLE_PUSH_BUTTON);

atk_object_set_role (accessible,
                                 button->priv->is_toggle ? ATK_ROLE_TOGGLE_BUTTON
                                                                       : ATK_ROLE_PUSH_BUTTON);
would be slightly more concise, but OK as-is of course
Comment 9 Florian Müllner 2012-08-24 16:28:41 UTC
Review of attachment 222348 [details] [review]:

::: js/ui/dash.js
@@ +237,3 @@
     _init: function() {
         this.parent();
+        this.title = _("Show Applications");

Why is title public?

@@ +252,3 @@
         this.setChild(this.toggleButton);
         this.setHover(false);
+        this.toggleButton.label_actor = new St.Label({ text: this.title });

I wonder - would doing
  this.toggleButton.label_actor = this.label;
work?
Comment 10 Florian Müllner 2012-08-24 16:31:55 UTC
(In reply to comment #9)
> @@ +252,3 @@
>          this.setChild(this.toggleButton);
>          this.setHover(false);
> +        this.toggleButton.label_actor = new St.Label({ text: this.title });
> 
> I wonder - would doing
>   this.toggleButton.label_actor = this.label;
> work?

Answering my own question: yes, you can do that, so let's go with that.
Comment 11 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-08-27 08:47:47 UTC
(In reply to comment #8)
> Review of attachment 222347 [details] [review]:
> 
> Sure - on a side note, the toggle mode is not at all a new addition, looks like
> we just overlooked it earlier :-)
> 
> ::: src/st/st-button.c
> @@ +785,3 @@
> +    atk_object_set_role (accessible, ATK_ROLE_TOGGLE_BUTTON);
> +  else
> +    atk_object_set_role (accessible, ATK_ROLE_PUSH_BUTTON);
> 
> atk_object_set_role (accessible,
>                                  button->priv->is_toggle ?
> ATK_ROLE_TOGGLE_BUTTON
>                                                                        :
> ATK_ROLE_PUSH_BUTTON);
> would be slightly more concise, but OK as-is of course

Committed using this change.
Comment 12 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-08-27 08:48:23 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > @@ +252,3 @@
> >          this.setChild(this.toggleButton);
> >          this.setHover(false);
> > +        this.toggleButton.label_actor = new St.Label({ text: this.title });
> > 
> > I wonder - would doing
> >   this.toggleButton.label_actor = this.label;
> > work?
> 
> Answering my own question: yes, you can do that, so let's go with that.

I pushed a commit using that suggestion. Thanks.
Comment 13 Alejandro Piñeiro Iglesias (IRC: infapi00) 2012-09-20 14:20:24 UTC
This bug was opened as a general review, that was done, and all patches comitted. Other stuff are already being tracked by individual bugs.

Closing as FIXED.
Comment 14 Alejandro Piñeiro Iglesias (IRC: infapi00) 2013-12-11 12:07:12 UTC
(In reply to comment #13)
> This bug was opened as a general review, that was done, and all patches
> comitted. Other stuff are already being tracked by individual bugs.
> 
> Closing as FIXED.

But I didn't close it. Closing it now. Sorry for the noise.