Update resources/views/layouts/parts/header-logo.blade.php for accessibility issue #6165
No reviewers
Labels
No labels
Focus: A11y
Focus: Admin/Meta
Focus: Authentication
Focus: Back-End
Focus: Database
Focus: Design & UX
Focus: Editor - Markdown
Focus: Editor - WYSIWYG
Focus: Export System
Focus: Front-End
Focus: Translations
Focus: View Customization
Is: Docs Update
Is: Enhancement
Is: Priority
Is: Security
Is: Upstream
Status
Blocked
Status
Open to discussion
Status
Out of scope
Status
Pending Validation
Type
API Request
Type
Bug Report
Type
Feature Request
Type
Happy feedback
Type
Maintenance
Type
Question
Type
Support
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bookstack/bookstack!6165
Loading…
Reference in a new issue
No description provided.
Delete branch "magordon/bookstack:development"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We had a review by our accessibility team, and overall Bookstack is doing great! However the logo is a bit of an issue for them, since the descriptive alt tag is not descriptive enough as "Logo". Ideally we would like to either extend bookstack to allow the alt tag to be customizable, remove the alt tag and replace with aria-hidden="true", or blank the alt tag so screen readers ignore it. I opted for aria-hidden. I am open to looking into extending the config to allow for it to be configured, but figured I'd try the simplest option first...
Details
We had a review by our accessibility team, and overall Bookstack is doing great! However the logo is a bit of an issue for them, since the descriptive alt tag is not descriptive enough as "Logo". Ideally we would like to either extend bookstack to allow the alt tag to be customizable, remove the alt tag and replace with aria-hidden="true", or blank the alt tag so screen readers ignore it. I opted for aria-hidden. I am open to looking into extending the config to allow for it to be configured, but figured I'd try the simplest option first...
Thank you for all your work on this app!
Checklist
Hi @magordon,
Thanks for raising the issue and offering this PR.
I've been reading up on best options for accessibility here.
Specifically this webaim page and this blogpost.
Based on what I've read there, simply having a blank alt tag sounds like it's preferred over aria-hidden.
Additionally I think that, if the
Show name in headersetting (app-name-headersetting key) is false, we can assume the logo likely already already aligns, and the user had hidden the text since it's already in the logo. Therefore we could use thesetting('app-name')text as alt text whensetting('app-name-header')is false.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.