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

[BUG]: Ensure buttons have discernible text #16893

Closed
KolliAnitha opened this issue Jan 11, 2023 · 24 comments
Closed

[BUG]: Ensure buttons have discernible text #16893

KolliAnitha opened this issue Jan 11, 2023 · 24 comments
Assignees
Labels
bug Label to indicate an issue is a regression Impact: Medium Will improve quality-of-life for at least 30% of users. Work: High It's not clear what the solution is; will need investigation.

Comments

@KolliAnitha
Copy link

KolliAnitha commented Jan 11, 2023

Describe the bug

Buttons must have discernible text

Steps To Reproduce

  1. Open Fractions exploration
  2. Click Continue till you reach the page 'Very good! Now look at these cakes...'
  3. Run axe devtools
  4. See errors
    Element location:
    .multiple-choice-option-container.e2e-test-multiple-choice-option-container[dir="auto"]:nth-child(1) > .multiple-choice-option
    .oppia-learner-hint-solution-button

Expected Behavior

No errors must be seen in axe devtools
Fix at least (1) of the following:
Element does not have inner text that is visible to screen readers
aria-label attribute does not exist or is empty
aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
Element has no title attribute
Element's default semantics were not overridden with role="none" or role="presentation"

Screenshots/Videos

Screenshot 2023-01-11 11 39 02 AM

What device are you using?

Desktop

Operating System

Other

What browsers are you seeing the problem on?

Chrome

Browser version

108.0.5359.111

Additional context

No response

@KolliAnitha KolliAnitha added bug Label to indicate an issue is a regression triage needed labels Jan 11, 2023
@KolliAnitha
Copy link
Author

Similar behavior observed in contributor dashboard.
Element Location:
.e2e-test-delete-interaction
Screenshot 2023-01-20 12 28 25 PM

@Priyansh61 Priyansh61 added Impact: Medium Will improve quality-of-life for at least 30% of users. Work: High It's not clear what the solution is; will need investigation. labels Feb 4, 2023
@kanishkcs
Copy link

hi @Priyansh61 , i would like to work on this issue , shall i just create a fix PR , or can i be assighned with this issue?

@Priyansh61
Copy link
Contributor

Hello @kanishkcs! Per the guidance at https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue, please provide an explanation of what your PR will do (with names of files you're changing, what you plan to change in each file, etc.). If it looks good, we can assign you to this issue.

Please also follow the other instructions on that wiki page if you have not yet done so. Thanks!

@kanishkcs
Copy link

kanishkcs commented Feb 7, 2023

Hi @Priyansh61 thanks for the reply ,
as this issues is about button missing discernible text
I will add the "aria-label" or "aria-labelledby" attribute to the button element to provide a descriptive text that screen readers can use to announce the purpose of the button.

I am currently in the process of identifying the files that need to be changed in order to resolve this issue.
Once I complete my analysis and have determined the files that need to be changed. Soon I'll find it and let you know.

@CodeWizarz
Copy link

@Priyansh61 i think i can fix the element that is not having inner text visible to the screen by simply adding the aria-label to the element like this

Submit

i'm not sure but correct me if i'm wrong

@a-s-t-e-y-a
Copy link

a-s-t-e-y-a commented Feb 7, 2023

@Priyansh61 I fix the the issue by adding aria-label="multipleChoice" in the directory as follows:-

extensions/interactions/MultipleChoiceInput/directives/multiple-choice-input-interaction.component.html

I also create a PR . If it seems fine to you
kindly merge it

a-s-t-e-y-a added a commit to a-s-t-e-y-a/oppia that referenced this issue Feb 7, 2023
a-s-t-e-y-a added a commit to a-s-t-e-y-a/oppia that referenced this issue Feb 7, 2023
@jeyasurya373
Copy link

jeyasurya373 commented Feb 9, 2023

this accessibility isse will gone if you add text for button and using style make the font-size: 0; .. now Element have inner text that is visible to screen readers not for user

@Priyansh61
Copy link
Contributor

@a-s-t-e-y-a I can't merge that PR since it is a change on your fork, before working on a issue, Please take a look at https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue.

And for creating a PR take a look at this wiki https://github.com/oppia/oppia/wiki/Make-a-pull-request and follow the guidelines.

@Priyansh61
Copy link
Contributor

Hi Everyone,

Please Per the guidance at https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue, please provide an explanation of what your PR will do (with names of files you're changing, what you plan to change in each file, etc.). If it looks good, we can assign you to this issue.

Please also follow the other instructions on that wiki page if you have not yet done so. Thanks!

a-s-t-e-y-a added a commit to a-s-t-e-y-a/oppia that referenced this issue Feb 10, 2023
a-s-t-e-y-a added a commit to a-s-t-e-y-a/oppia that referenced this issue Feb 13, 2023
a-s-t-e-y-a added a commit to a-s-t-e-y-a/oppia that referenced this issue Feb 13, 2023
a-s-t-e-y-a added a commit to a-s-t-e-y-a/oppia that referenced this issue Feb 16, 2023
@dsg1320
Copy link

dsg1320 commented Feb 16, 2023

is this issue still open

@Priyansh61
Copy link
Contributor

Yes @dsg1320 The issue is still open

@driptanil
Copy link

Please Review my pull requests

@driptanil
Copy link

Please Assign me this Issue

@seanlip
Copy link
Member

seanlip commented Mar 1, 2023

@driptanil Per the guidance at https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue, please provide an explanation of what your PR will do (with names of files you're changing, what you plan to change in each file, etc.). If it looks good, we can assign you to this issue.

Please also follow the other instructions on that wiki page if you have not yet done so. Thanks!

@B1TSH3LL
Copy link

I want to work on this issue please assign this to me.

What i gonna do here ?
To make sure that Ensure buttons have discernible text, you can follow these guidelines:

  1. Use clear and concise language: The text on the Ensure button should clearly state what action the button will perform. Avoid using vague or ambiguous terms that may confuse the user.
  2. Use contrasting colors: The text on the Ensure button should be easy to read and stand out from the background. Use contrasting colors to make sure that the text is easily visible.
  3. Use a consistent style: Ensure buttons should have a consistent style throughout your application or website. This will help users to easily recognize the buttons and understand their purpose.
  4. Avoid using generic text: Instead of using generic text such as "OK" or "Cancel," use text that is specific to the action being performed. For example, instead of "OK" use "Confirm" or "Save."
  5. Test the readability: Before publishing your application or website, test the readability of the Ensure button text with real users. This will help you to identify any issues and make necessary improvements.

By following these guidelines, you can make sure that Ensure buttons have discernible text and are easy for users to understand and use.

@seanlip
Copy link
Member

seanlip commented Mar 12, 2023

@B1TSH3LL This is a generic response. It doesn't suffice to demonstrate that you understand how to solve the issue, and responses like this will not result in our assigning you to it. Instead, please explain specifically what your PR will do and what files you are modifying, per the guidelines linked in my previous comment. Thanks.

@hemantmm
Copy link
Contributor

Hi, @seanlip, @Priyansh61 I have tried to fix 6 issues out of 7 by changing the file,

oppia/extensions/interactions/MultipleChoiceInput/directives/multiple-choice-input-interaction.component.html
By adding aria-label="choice"
image

oppia/core/templates/pages/exploration-player-page/layout-directives/exploration-footer.component.html
By adding <ul></ul> for the list
image
By adding .oppia-lesson-info { width: 15rem; }
image

oppia/core/templates/components/common-layout-directives/navigation-bars/top-navigation-bar.component.html
By removing aria-expanded="false" in the file
image

RESULT :
image

@Praashh
Copy link

Praashh commented Mar 24, 2023

Hey please assign me this issue

@prafulbbandre
Copy link
Contributor

@9520prashant Per the guidance at https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue, please provide an explanation of what your PR will do (with names of files you're changing, what you plan to change in each file, etc.). If it looks good, we can assign you to this issue.

Please also follow the other instructions on that wiki page if you have not yet done so. Thanks!

@Priyansh61
Copy link
Contributor

@hemantmm The learner might not be able to discriminate btwn the n options presented by the screen reader since all of them are having the same aria-label as 'choice' so can we think of something different?

@hemantmm
Copy link
Contributor

@Priyansh61 is this fine now?
aria-label="Select the option"

@seanlip
Copy link
Member

seanlip commented Mar 29, 2023

The readout for each multiple-choice option should be the alt text of the corresponding image. Please show a video showing that this behaviour is achieved.

@Patel-Muhammad
Copy link
Contributor

This is issue is no longer reproducible on test server.
(Running the axeDevtools does not give any error related to: "Buttons must have discernible text")
Screenshot from 2023-10-12 11-17-22

@Patel-Muhammad
Copy link
Contributor

Closing as no longer reproducible

@github-project-automation github-project-automation bot moved this from In Progress to Done in LaCE Quality Team Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Label to indicate an issue is a regression Impact: Medium Will improve quality-of-life for at least 30% of users. Work: High It's not clear what the solution is; will need investigation.
Projects
Archived in project
Development

No branches or pull requests