You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve the accessibility of Code Radio app #42236
help wantedOpen for all. You do not need permission to work on these.platform: coderadioThreads for the freeCodeCamp coderadioscope: a11yThreads for addressing accessibility issues.
Hello,
I need help regarding the last point - 'Revisit the color contrast of the elements in question"
Do I need to change the Colors ?
Also removing arai-label from Canvas component is not allowed by the Linter
@ish-u, thanks for working on this. If you could list the elements in question, we could change their contrasts accordingly as the tool requires sign up and subscription plan.
The keyboard shortcuts button has lower opacity by design, but we could change that accordingly.
Hey team, sorry for not being able to respond sooner.
@ish-u Thank you for the fix! Don't worry, I can take a look at the canvas aria-label issue 🙂
Regarding the color contrast, we don't have to address them all. axe DevTools, just like other audit tools, cannot be 100% accurate on the errors they flag as they can't determine if the color contrast actually needs to meet the requirement.
On Google Chrome
while not Playing:
Keyboard Shorcut
while Playing:
Keyboard Shorcut
Stream Selection
On Mozilla FireFox:
while not Playing:
Keyboard Shorcut
while Playing:
Keyboard Shorcut
Stream Selection
CurrentSong Component
title div
artist div
album div
I think the text color of song metadata is sufficient. It is #ffffff on #0A0a23, which yields 19.43:1 in contrast ratio. Same goes for the stream selection as I believe we don't have any custom CSS on it, so it looks the same as the native browser's <select>.
I'm not on subscription plan either, so I'm not sure which element the tool refers to. Here are just a couple elements I could think of:
Keyboard shortcut (as Anmol listed)
Visualizer
Progress indicator
We should address the contrast issue for the keyboard shortcut box as it may not be distinguishable by users with low vision. If we think it would be distracting for the users, we can consider making it a popup and add an icon button to the footer to trigger it, similar to how the song history is displayed.
For the visualizer, I think we can leave it as is, since it is just a decorative component and does not communicate any information or require user's attention. From the "Graphic Objects" section of this guide:
The term "graphical object" applies to stand-alone icons such as a print icon (with no text), and the important parts of a more complex diagram such as each line in a graph. For simple graphics such as single-color icons the entire image is a graphical object. Images made up of multiple lines, colors and shapes will be made of multiple graphical objects, some of which are required for understanding.
Not every graphical object needs to contrast with its surroundings - only those that are required for a user to understand what the graphic is conveying.
I'm a bit concerned with the progress indicator, as it does provide information to the user, thus, needs to meet the contrast ratio requirement, especially when we don't have the song duration on the screen. However, since non-visual users cannot see the progress, we should still render the timer as text, or alternatively use the aria-label attribute to allow screen readers to pick up. I'm not sure if the API returns this piece of information for us or we need to do the calculation ourselves. We can split this into another issue and address it separately though if it is too complex.
I also had the doubts regarding the contrast because the tool said something like "needs to be reviewed".
Maybe we can do something about the Keyboard Shorcuts like move it to the left side of Navigation Bar
IMHO, having the keyboard shortcut box in the Footer component would be more appropriate, as the nav element is usually used for important navigation links.
I was thinking about placing it on the right side of the Footer, both because it has been on the right side of the screen all along, and since it is less important than other elements, it should be the last item in the compositional flow. That said, I don't have a strong opinion on which side of the Footer it should be.
Sure. adding it to the footer with that icon would make sense.
That being said we will have another button that will toggle the embedded rocketchat.
I was wondering if we should add some info regarding reporting issues as well.
That way a question mark icon or an info icon might be more appropriate.
@ahmadabdolsaheb Would the chat toggle and the report issue button be separate items or they would be grouped in a menu? I guess grouping them would be better, as the footer would be a little cramped up otherwise.
Are you still looking for help with accessibility enhancements for the radio? I'm currently preparing for the Web Accessibility Specialist certification offered by the IAAP and would be happy to help out.
thanks to @bbsmooth a lot of the accessibility issues have been resolved, so I will close this issue accordingly.
We can continue the discussion around the footer optimizations in a related issue if necessary.
help wantedOpen for all. You do not need permission to work on these.platform: coderadioThreads for the freeCodeCamp coderadioscope: a11yThreads for addressing accessibility issues.
Activity
ish-u commentedon Jun 1, 2021
Hello,
I would like to help with this issue.
gikf commentedon Jun 2, 2021
Hey @ish-u
issues are typically not assigned to specific person, other than long-time contributors, you can read more on https://contribute.freecodecamp.org/#/FAQ?id=how-can-i-get-an-issue-assigned-to-me. Issues with help wanted label are open for contributions for everybody.
Please make sure you read our guidelines for contributing. Join us in our chat room or the forum if you need help contributing, our moderators will guide you through this.
ish-u commentedon Jun 2, 2021
Thank You for replying.
(Sorry i am new to open-source)
ahmaxed commentedon Jun 2, 2021
Also this is the repo for coderadio. https://github.com/freeCodeCamp/coderadio-client
I would recommend running it locally and skimming the source code before your first contribution.
ish-u commentedon Jun 9, 2021
Hello,

I need help regarding the last point - 'Revisit the color contrast of the elements in question"
Do I need to change the Colors ?
Also removing
arai-labelfrom Canvas component is not allowed by the Linterahmaxed commentedon Jun 11, 2021
@ish-u, thanks for working on this. If you could list the elements in question, we could change their contrasts accordingly as the tool requires sign up and subscription plan.
The keyboard shortcuts button has lower opacity by design, but we could change that accordingly.
ish-u commentedon Jun 11, 2021
Thank You for merging my PR.
On Google Chrome
On Mozilla FireFox:
ahmaxed commentedon Jun 11, 2021
Here is the design style guide: https://design-style-guide.freecodecamp.org/
And here is the colors that are used in the UI: https://github.com/freeCodeCamp/freeCodeCamp/blob/main/client/src/components/layouts/variables.css#L2-L30
feel free to replace the colors and create a pull request, I will go in the pr and change the colors if necessary.
huyenltnguyen commentedon Jun 12, 2021
Hey team, sorry for not being able to respond sooner.
@ish-u Thank you for the fix! Don't worry, I can take a look at the canvas aria-label issue 🙂
Regarding the color contrast, we don't have to address them all. axe DevTools, just like other audit tools, cannot be 100% accurate on the errors they flag as they can't determine if the color contrast actually needs to meet the requirement.
I think the text color of song metadata is sufficient. It is
#ffffffon#0A0a23, which yields19.43:1in contrast ratio. Same goes for the stream selection as I believe we don't have any custom CSS on it, so it looks the same as the native browser's<select>.I'm not on subscription plan either, so I'm not sure which element the tool refers to. Here are just a couple elements I could think of:
We should address the contrast issue for the keyboard shortcut box as it may not be distinguishable by users with low vision. If we think it would be distracting for the users, we can consider making it a popup and add an icon button to the footer to trigger it, similar to how the song history is displayed.
For the visualizer, I think we can leave it as is, since it is just a decorative component and does not communicate any information or require user's attention. From the "Graphic Objects" section of this guide:
I'm a bit concerned with the progress indicator, as it does provide information to the user, thus, needs to meet the contrast ratio requirement, especially when we don't have the song duration on the screen. However, since non-visual users cannot see the progress, we should still render the timer as text, or alternatively use the
aria-labelattribute to allow screen readers to pick up. I'm not sure if the API returns this piece of information for us or we need to do the calculation ourselves. We can split this into another issue and address it separately though if it is too complex.huyenltnguyen commentedon Jun 12, 2021
Huh, the issue with
aria-labelon canvas is trickier than I thought.According to the HTML specs,
canvascan take any ARIA attributes, so I think the this is a bug of the toolHowever, according to Deque (the organization behind the Axe tool) and an a11y expert, the
role="img"should be set to non-interactivecanvas. But thejsx-a11yplugin is currently not allowing it jsx-eslint/eslint-plugin-jsx-a11y#648.There is already a PR to update the eslint rule, and we should wait for it before making any change there.
ish-u commentedon Jun 13, 2021
I also had the doubts regarding the
contrastbecause the tool said something like "needs to be reviewed".Maybe we can do something about the
Keyboard Shorcutslike move it to the left side of Navigation Barhuyenltnguyen commentedon Jun 14, 2021
IMHO, having the keyboard shortcut box in the Footer component would be more appropriate, as the
navelement is usually used for important navigation links.I was thinking about placing it on the right side of the Footer, both because it has been on the right side of the screen all along, and since it is less important than other elements, it should be the last item in the compositional flow. That said, I don't have a strong opinion on which side of the Footer it should be.
I think we can make use of the fa-keyboard-o btw 🙂
ish-u commentedon Jun 14, 2021
Font Awesome icon would be better
ahmaxed commentedon Jun 23, 2021
Sure. adding it to the footer with that icon would make sense.
That being said we will have another button that will toggle the embedded rocketchat.
I was wondering if we should add some info regarding reporting issues as well.
That way a question mark icon or an info icon might be more appropriate.
ish-u commentedon Jun 24, 2021
I can try adding the
Issue Report Button.where should i place it on
navbaron right or left?huyenltnguyen commentedon Jun 29, 2021
@ahmadabdolsaheb Would the chat toggle and the report issue button be separate items or they would be grouped in a menu? I guess grouping them would be better, as the footer would be a little cramped up otherwise.
ahmaxed commentedon Jul 1, 2021
How about this
[history] [----------------------------] [play/pause] [volume] [get help(question mark)] [chat]
get help menu would have the keyboard shortcuts and
report an issue( should go to the forum under the support category. )
bbsmooth commentedon Dec 30, 2021
Are you still looking for help with accessibility enhancements for the radio? I'm currently preparing for the Web Accessibility Specialist certification offered by the IAAP and would be happy to help out.
ahmaxed commentedon Dec 30, 2021
@bbsmooth, Yes, please feel free to take a look.
Additionally, we would also appreciate taking a look at the editor in our new curriculum. Here is a link: https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-1
Ajob41 commentedon Dec 30, 2021
bbsmooth commentedon Jan 4, 2022
@ahmadabdolsaheb I've started making accessibility updates to the radio and have already submitted three PRs.
ahmaxed commentedon Jan 5, 2022
@Ajob41, I agree that this issue's main focus has shifted. I will summarize and recreate another one shortly.
@bbsmooth thanks for the prs.
Ajob41 commentedon Jan 5, 2022
ahmaxed commentedon Feb 2, 2022
thanks to @bbsmooth a lot of the accessibility issues have been resolved, so I will close this issue accordingly.
We can continue the discussion around the footer optimizations in a related issue if necessary.