Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

First steps towards improving the accessibility of the PersonaBar. #36

Merged
merged 5 commits into from
Sep 19, 2018

Conversation

OllyHodgson
Copy link
Contributor

@OllyHodgson OllyHodgson commented Aug 16, 2018

Summary

First attempt at fixing #32 and #34:

  • Adds aria-haspopup and aria-expanded attributes to relevant icons in the main PersonaBar.
  • When menus become visible, set aria-expanded to true (and back to false when they're hidden)
  • Add alt text to the icons - via a <title> element when it's an SVG

Release Note: First steps towards improving the accessibility of the PersonaBar.

Testing Steps: Compare before and after using the accessibility pane in Firefox's developer tools. Would also be a good idea to get some help from someone using assistive technology.

This is my first pull request on DNN, so be gentle ;-)

@mitchelsellers
Copy link
Contributor

@OllyHodgson At first review, this looks like a good fix. I'll review in more detail later

@Cambridgeport90
Copy link

I am keeping an eye on this one. We have some members aside from myself using assistive tech in the @stormlighttech organization, so I'll see what we can do as well ... it's time we got involved in more projects anyways! Thanks again for this. Remember, anyone can get a free screen reader. go to NVDA.

Copy link
Contributor

@mitchelsellers mitchelsellers left a comment

Choose a reason for hiding this comment

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

These changes look good and do not impact the usability of the site for people. Lets get this approved if we can.

@Cambridgeport90
Copy link

Nice work, guys. I'm now wondering how I can add these changes into my existing site. I unfortunately don't have two environments at the moment, so, I'll need the next alternative, if you have one. Thanks.

@OllyHodgson
Copy link
Contributor Author

@mitchelsellers I haven't signed the CLA yet - and the automagical integration doesn't seem to exist in this repo.

@OllyHodgson
Copy link
Contributor Author

@Cambridgeport90 The 3 files I modified live under /DesktopModules/Admin/Dnn.PersonaBar. If you're using 9.2.1 you could simply copy the patched files from this pull request over the top of the existing ones.

Assuming it's an accessible tool, http://www.nvquicksite.com/ can set up fresh instances of DNN on your PC super quickly and easily.

@Cambridgeport90
Copy link

Cambridgeport90 commented Aug 20, 2018 via email

@Cambridgeport90
Copy link

Cambridgeport90 commented Aug 20, 2018 via email

@mitchelsellers mitchelsellers added this to the 1.7.0 milestone Sep 4, 2018
@dnfclas
Copy link

dnfclas commented Sep 7, 2018

CLA assistant check
All CLA requirements met.

@ohine
Copy link
Contributor

ohine commented Sep 14, 2018

@OllyHodgson Are you still working on more items to bundle in this pull request? Or should we merge it as it stands?

@OllyHodgson
Copy link
Contributor Author

@ohine This one is good to go (unless any bugs are found). I can file more PRs for further work as time permits.

(do I need to do anything more? I'm new to this githubbing thing!)

@mitchelsellers
Copy link
Contributor

@OllyHodgson We will go ahead and merge this one in, you can for sure submit additional items. Future PR's will be approved/processed faster since we will not have the issue with the CLA agreement that we had this time.

We greatly appreciate your contributions to this effort!

@mitchelsellers mitchelsellers merged commit 7985582 into dnnsoftware:development Sep 19, 2018
@ashishpd
Copy link
Contributor

I am wondering how I can test this.. Are there any instructions on what to look for in the Firefox Accessibility tool?

@Cambridgeport90
Copy link

Cambridgeport90 commented Apr 13, 2019 via email

@OllyHodgson
Copy link
Contributor Author

@ashishpd Using the Firefox accessibility dev tools you should be able to see after this patch that the main menu items in the PersonaBar now have text labels! Before, they did not, so they were effectively invisible to assistive tech.

You could also install/enable NVDA, ChromeVox or VoiceOver (dependent on your platform) and listen to the PersonaBar being read aloud. I seem to remember NVDA can also show you the text being read out.

Sorry I can't be much more specific - I've moved jobs (and to another continent!) and don't have access to a Windows machine or DNN install right now.

@ashishpd
Copy link
Contributor

Thanks @OllyHodgson and @Cambridgeport90 for getting back. Here's a video where I've tried to explain the update: https://www.youtube.com/watch?v=xjZa8PQ8qiE&list=PLIx1M8IdVvqafFiDozHCf79woQEuT2ko3&index=4

Hopefully, it aligns with what you did here.

@Cambridgeport90
Copy link

Cambridgeport90 commented Apr 22, 2019 via email

@valadas
Copy link
Contributor

valadas commented Apr 22, 2019

Good job, I will also be improving the common components as I touch them to make them accessible. Keyboard navigation is still an issue but we will keep working on that.

@Cambridgeport90
Copy link

Cambridgeport90 commented Apr 23, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants