Skip to content

Conversation

@jancborchardt
Copy link
Member

@jancborchardt jancborchardt commented Apr 18, 2018

Ideally, the labels should show up as popovers also when hovering just like for the apps cc @juliushaertl @skjnldsv.

Please review @nextcloud/accessibility @nextcloud/designers @MarcoZehe

@jancborchardt jancborchardt added bug design Design, UI, UX, etc. 3. to review Waiting for reviews labels Apr 18, 2018
@jancborchardt jancborchardt self-assigned this Apr 18, 2018
</div>
<div id="settings">
<nav id="settings" aria-label="Settings">
<div id="expand" tabindex="0" role="link" class="menutoggle">

Choose a reason for hiding this comment

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

This would create a navigation landmark with the label "Settings", but the actual link (which should be a button) will still not be labeled. Also, due to the tabindex attribute, keyboard focus will land on here. So what the user will hear is:

"Settings navigation landmark"

followed by "Link".

And that link still won't say that it is the Settings link, that it's actually hiding a dropdown menu (aria-haspopup="true", and that it's currently hiding it (aria-expanded="false"). Oh and yes that div should have a role of "button", not "link". Links go somewhere, buttons do something.

Copy link
Member Author

Choose a reason for hiding this comment

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

Just added the aria-haspopup, -expanded and -controls attributes. Will look into the other things now, thank you!

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved the aria-label="Settings" down to the actual link, and also added an aria-label="Settings menu" to the menu. Is that correct?

<div class="menu"></div>
</div>
<div id="settings">
<nav id="settings" aria-label="Settings">
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be localized as well?

Choose a reason for hiding this comment

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

Yes, aria-label, or anything referenced by aria-labeledby via ID, as well as aria-describedby (for additional info, less often used), are spoken by a screen reader and thus should be localized.

@codecov
Copy link

codecov bot commented Apr 18, 2018

Codecov Report

Merging #9224 into master will decrease coverage by <.01%.
The diff coverage is 10%.

@@             Coverage Diff              @@
##             master    #9224      +/-   ##
============================================
- Coverage     51.91%   51.91%   -0.01%     
  Complexity    25361    25361              
============================================
  Files          1606     1606              
  Lines         95311    95317       +6     
  Branches       1394     1394              
============================================
+ Hits          49478    49480       +2     
- Misses        45833    45837       +4
Impacted Files Coverage Δ Complexity Δ
core/templates/login.php 0% <ø> (ø) 0 <0> (ø) ⬇️
core/templates/layout.public.php 0% <0%> (ø) 0 <0> (ø) ⬇️
core/templates/layout.user.php 0% <0%> (ø) 0 <0> (ø) ⬇️
core/templates/layout.guest.php 0% <0%> (ø) 0 <0> (ø) ⬇️
core/templates/layout.base.php 0% <0%> (ø) 0 <0> (ø) ⬇️
core/js/js.js 65.96% <100%> (+0.07%) 0 <0> (ø) ⬇️
apps/files_trashbin/lib/Trashbin.php 72.46% <0%> (-0.25%) 136% <0%> (ø)
lib/private/Files/Cache/Propagator.php 96.2% <0%> (+1.26%) 16% <0%> (ø) ⬇️

@jancborchardt
Copy link
Member Author

Also added labels to the apps now. @MarcoZehe I did it via aria-label on the link directly, since it’s simpler than aria-labelledby referring to the span.

@jancborchardt
Copy link
Member Author

@MarcoZehe I think now all the feedback points you mentioned on Twitter should be fixed? (Except making the elements buttons, because that will need some more global CSS work.)

@nextcloud/accessibility please check also. :)

</ul>

</div>
</nav>
Copy link
Member

Choose a reason for hiding this comment

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

Indentation seems wrong here.

… thanks to @MarcoZehe

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
@jancborchardt jancborchardt force-pushed the accessibility-improvements branch from f704b5f to df3c1ac Compare April 18, 2018 13:09
@jancborchardt
Copy link
Member Author

Squashed the commits into one also because it’s not so much, and in case we want to backport. @MorrisJobke?

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
@jancborchardt
Copy link
Member Author

I also went through it with aXe again and fixed some more color contrast and issues on the log in page. This should be good to go now, and other aspects like settings and such we should do in separate pull requests.

@MorrisJobke
Copy link
Member

Retriggered the CI job

@jancborchardt
Copy link
Member Author

@MarcoZehe by the way, I’d like to invite you to the Nextcloud organization here, and the accessibility team as well. Let me know if you are ok with that. :)

@MorrisJobke MorrisJobke added this to the Nextcloud 14 milestone Apr 19, 2018
@MorrisJobke MorrisJobke merged commit 0bae516 into master Apr 19, 2018
@MorrisJobke MorrisJobke deleted the accessibility-improvements branch April 19, 2018 12:47
@MorrisJobke
Copy link
Member

We should backport this to stable13 for 13.0.3

@tyrylu
Copy link
Contributor

tyrylu commented Apr 19, 2018

Yes, please, i would be glad as well.

@MorrisJobke
Copy link
Member

We should backport this to stable13 for 13.0.3

@jancborchardt Could you do this? Thanks

@jancborchardt
Copy link
Member Author

@MorrisJobke I have issues with my laptop currently as it is not properly charging, and is off to repair since yesterday eve. :/ Could I ask you to do it?

@MorrisJobke
Copy link
Member

@MorrisJobke I have issues with my laptop currently as it is not properly charging, and is off to repair since yesterday eve. :/ Could I ask you to do it?

Sure - there you go #9433

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 bug design Design, UI, UX, etc. feature: accessibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants