Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ActionButton for AppNavigationToggle #1844

Merged
merged 2 commits into from
Apr 16, 2021

Conversation

raimund-schluessler
Copy link
Contributor

@raimund-schluessler raimund-schluessler commented Apr 13, 2021

This is another approach to #1843. We simply use ActionButton for the AppNavigationToggle now and let it do the heavy lifting.

hover/focus feedback after:
Unbenannt
Unbenannt

@raimund-schluessler raimund-schluessler added 3. to review Waiting for reviews accessibility Making sure we design for the widest range of people possible, including those who have disabilities bug Something isn't working design Design, UX, interface and interaction design feature: app-navigation Related to the app-navigation component labels Apr 13, 2021
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Copy link
Contributor

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When testing with a screenreader, the aria label seems to be duplicated, it reads:

navigation, open navigation collapsed pushbutton, open navigation

And when the navigation is open:

navigation, close navigation expanded pushbutton, close navigation

So it seems we should actually not have the aria-label because the "navigation" already comes from the role="navigation" on the parent. Then it would just be "navigation, expanded pushbutton".

@raimund-schluessler
Copy link
Contributor Author

When testing with a screenreader, the aria label seems to be duplicated, it reads:

navigation, open navigation collapsed pushbutton, open navigation

And when the navigation is open:

navigation, close navigation expanded pushbutton, close navigation

So it seems we should actually not have the aria-label because the "navigation" already comes from the role="navigation" on the parent. Then it would just be "navigation, expanded pushbutton".

@jancborchardt Would it be possible that you adjust that? I don't have a screenreader at hand.

@jancborchardt
Copy link
Contributor

@jancborchardt Would it be possible that you adjust that? I don't have a screenreader at hand.

I could try – but which system are you on? If you use GNOME, you can simply go to "Universal Access" and activate the screenreader from there. :)

…f the ActionButton

Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
@jancborchardt
Copy link
Contributor

Fixed it :) @raimund-schluessler the issue was simply that the aria-label was duplicating the text which was already in the ActionButton, so removing the aria-label fixed it.

Copy link
Contributor

@jancborchardt jancborchardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great now! :)

@jancborchardt
Copy link
Contributor

@skjnldsv could you check and approve if your change request is addressed? :)

@raimund-schluessler raimund-schluessler merged commit 252cf53 into master Apr 16, 2021
@raimund-schluessler raimund-schluessler deleted the design/app-navigation-action branch April 16, 2021 10:18
@jotoeri
Copy link
Contributor

jotoeri commented Apr 22, 2021

How about a backport here? 😉

@skjnldsv skjnldsv mentioned this pull request Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews accessibility Making sure we design for the widest range of people possible, including those who have disabilities bug Something isn't working design Design, UX, interface and interaction design feature: app-navigation Related to the app-navigation component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants