Card images do not have an alt attribute
Categories
(Firefox :: New Tab Page, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: maxx, Assigned: samuthu2105, Mentored, NeedInfo)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=html])
Attachments
(2 files)
Story images do not have an alt attribute. When NVDA focus reaches a story card, it will read off the image name.
Note: Does Merino provide alt tags / pass along data from the provider?
Comment 1•9 months ago
|
||
The severity field for this bug is set to S3. However, the accessibility severity is higher, .
:thecount, could you consider increasing the severity?
For more information, please visit BugBot documentation.
Updated•9 months ago
|
Comment 2•9 months ago
|
||
Spoke with the backend team, and we currently don't have alt text available through the content feed API. We would need to engage a new vendor at additional cost, with an estimated 3 weeks of backend work.
Comment 3•6 months ago
|
||
We can probably use an empty alt tag here to indicate to screenreaders that this is a decorative image. Unless we have explicit alt texts to provide, which sounds like will be out of scope for a while, we can just add alt="". Curious about Anna or Natalie's thoughts around this.
Comment 4•5 months ago
|
||
hi Irene and Reem! I agree with your suggestion, Reem. alt="" text should be sufficient here. Thank you!
Comment 5•5 months ago
•
|
||
Thanks Natalie!
I recommend, in this case, that this could also be labeled as a good-first-bug for contributors to get their hands dirty with if they'd like to work on Firefox. What do you think Irene?
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Comment 6•5 months ago
•
|
||
To help Mozilla out with this bug, here's the steps:
-
Comment here on the bug that you want to volunteer to help.
This will tell others that you're working on the next steps. -
Download and build the Firefox source code: https://firefox-source-docs.mozilla.org/setup/index.html
- If you have any problems, please ask on the bug or reach out to the team.
- You can also read the Firefox Contributors' Quick Reference, which has answers to most development questions: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
-
Start working on this bug. Follow the steps the reporter of this bug has put in to replicate the issue. Use Developer Tools to inspect the card image.
A good place to start is DSImage, the React component that renders story card images.
Look at thedefaultPropssection (around line 280) - you'll seealt_textis currently set tonull.- If you have any problems with this bug, please comment on this bug and set the needinfo flag for me.
-
Run and test your newtab changes:
- Open 2 terminal windows, both in the firefox directory:
- Window #1: Run
./mach newtab watch(this will watch for code changes) - Window #2: Run
./mach run(this will launch Firefox)
- Window #1: Run
- To reload the page with fresh code changes:
- Mac: Press Cmd+Opt+R
- Windows/Linux: Press Ctrl+Shift+R
- Check your changes for adherence to our style guidelines by using
./mach lint
- Open 2 terminal windows, both in the firefox directory:
-
Commit your changes with a proper commit message:
- Use the following format for your commit message:
Bug XXXXXX - Text explaining your fix. r=#home-newtab-reviewers- Replace XXXXXX with the bug number (found at the end of this bug's URL)
- Example: Bug 1234567 - Fix broken link in Top Sites menu. r=#home-newtab-reviewers
- Commit your changes with: git commit -am "Bug XXXXXX - Your description here. r=#home-newtab-reviewers"
- Important: Phabricator only needs one commit per bug. If you need to make additional changes after committing, use
git commit --amend --no-editto update your existing commit instead of creating a new one.
- Use the following format for your commit message:
-
Submit the patch (including an automated test, if applicable) for review. Mark me as a reviewer so I'll get an email to come look at your code.
- Getting your code reviewed: https://firefox-source-docs.mozilla.org/setup/contributing_code.html#getting-your-code-reviewed
- This is when the bug will be assigned to you.
-
After a series of reviews and changes to your patch, I'll mark it for checkin or push it to autoland. Your code will soon be shipping to Firefox users worldwide!
-
...now you get to think about what kind of bug you'd like to work on next. Let me know what you're interested in and I can help you find your next contribution.
| Assignee | ||
Comment 7•5 months ago
|
||
Hi, I’m new to contributing to Firefox, and I’d love to work on this issue if it’s still available. Please let me know if I can proceed.
Comment 8•5 months ago
•
|
||
Hi! I've assigned the bug to you :) Please reach out if you have any questions!
| Assignee | ||
Comment 9•5 months ago
|
||
(In reply to Irene Ni [:ini] from comment #8)
Thank you for assigning this to me! I’ll start setting up the Firefox build environment and begin working on the fix. I’ll reach out if I run into any issues.
Thanks again!
| Assignee | ||
Comment 10•5 months ago
|
||
| Assignee | ||
Comment 11•5 months ago
|
||
I have submitted the patch for review on Phabricator: https://phabricator.services.mozilla.com/D283891. Thanks!
Comment 12•5 months ago
|
||
Awesome work! I've tested your fix and I'm seeing alt="" on the card image. You'll just have to bundle your changes per my comment on Phabricator before landing.
Updated•5 months ago
|
Comment 13•5 months ago
|
||
Comment 14•5 months ago
|
||
| bugherder | ||
Description
•