SlideShare a Scribd company logo
1 of 39
Download to read offline
Making Popular WordPress
Plugins More Accessible
Claire Brotherton
WordCamp Edinburgh, July 2017
@abrightclearweb
Why Does Plugin Accessibility
Matter?
• WordPress is used by 28.3% of all websites 



(https://w3techs.com/technologies/details/cm-wordpress/all/
all)
• Over 51,000 plugins are available on WordPress.org
• 1 in 5 people in the UK have a disability



(https://www.gov.uk/government/uploads/system/uploads/
attachment_data/file/600465/family-resources-
survey-2015-16.pdf)
How To Test Plugins For
Accessibility?
• Keyboard (motor disability)
• Screen reader (visual impairment). Free ones are:
• NVDA (Windows) - best with Firefox 

https://www.nvaccess.org
• VoiceOver (Mac & iOS, built-in) - best with Safari

If We Find Plugin Accessibility
Issues, How Can We Fix Them?
• Leave a message on WordPress.org forums

• Premium plugins: contact their support

• Use a plugin to improve the accessibility of the one we want
to use

• Find alternative plugins without accessibility issues
What Is Keyboard Focus?
Which Are The Main
Focusable HTML Elements?
• Links <a>
• Form elements e.g. <input>
• Buttons <button>
• https://allyjs.io/data-tables/focusable.html
Making Other HTML
Elements Focusable
The tabindex value can allow for some interesting
behaviour.
• If given a value of "-1", the element can't be tabbed to but
focus can be given to the element programmatically
(using element.focus()).

• If given a value of 0, the element can be focused via the
keyboard and falls into the tabbing flow of the document.

• https://snook.ca/archives/accessibility_and_usability/
elements_focusable_with_tabindex
Visible Focus Styles
Visible Focus Styles
Mac users
- blue focus ring
VoiceOver users
- black border
Chrome User?
• Focus Indicator (Chrome extension)
• https://chrome.google.com/webstore/detail/focus-indicator/
heeoeadndnhebmfebjccbhmccmaoedlf
How To Navigate With The
Keyboard
• Tab key to go forwards
• Shift + Tab to go backwards
• Enter to click link/button
• Space to activate buttons /
check checkboxes
How To Navigate With The
Keyboard
• Arrow keys to navigate radio

buttons
• Esc key to close dialogs
• If something is accessible via
keyboard, it’s normally
accessible via a screen
reader too
LIGHTBOX
How Should An Accessible
Lightbox Work?
• The trigger to open the lightbox must get keyboard focus.
• There should be a warning that a new window will open.
• Focus must go to the lightbox when opened, and be visible.
• Lightbox image(s) must have alt text.
• Tabbing must cycle round the links within the lightbox until dismissed.
• Focus must return to the element on the page which the lightbox was
opened from.
• http://www.coolfields.co.uk/2011/12/specification-for-an-accessible-lightbox/
NextGEN Gallery
https://wordpress.org/plugins/nextgen-gallery/
Over 1 million active installs
NextGEN Gallery Demo (1)
Nextgen Gallery Test Results
(Keyboard)
• No instructions given that clicking on a thumbnail will open a larger image.
• The focus style on the thumbnails is very hard to see.
• Opens the lightbox but the focus remains in the window below. So tabbing
through I could return to an unexpected place.
• Can’t focus on the lightbox X to close. Only the Esc key works.
• Arrow keys move the lightbox images forward/back - but is this obvious
to users?
NextGEN Gallery Demo (2)
NextGEN Gallery Test Results
(VoiceOver)
• Focus style is better thanks toVoiceOver’s default style.
• We had the same issues with the focus not moving to the lightbox.
• VoiceOver read out the filename for most of the thumbnail images. It’s
not enough to add the alt text in WordPress Media Library - you must add it
in Next Gen Gallery’s settings too.
• Image links should tell the user the destination of the link, so should read
something like “Open a panel with larger version of figure holding a bunch
of grapes in close-up”.
NextGEN Gallery Test Results
• The trigger to open the lightbox must get keyboard focus. ✅
• There should be a warning that a new window will open. ❌
• Focus must go to the lightbox when opened, and be visible. ❌
• Lightbox image(s) must have alt text. ❌
• Tabbing must cycle round the links within the lightbox until dismissed. ❌
• Focus must return to the element on the page which the lightbox was
opened from. ❌
What We Can Do To Fix
Lightbox Accessibility Issues?
• Add alt text to images (the NextGEN Gallery way) and use descriptive
filenames.
• Raise issues with the plugin’s developer on the WordPress.org forums.
• No suitable replacement plugin, unfortunately.
• Lity is an accessible lightbox but isn’t in the form of a WordPress plugin. It
doesn’t show multiple images.
• http://sorgalla.com/lity/
MODAL WINDOW
MailMunch
https://wordpress.org/plugins/mailmunch/
Over 20,000 active installs
MailMunch Demo
MailMunch Test Results
• Not keyboard accessible - focus remains behind the modal, on the page.
• Even the Esc key didn’t work.
• No email subscribers for you!
Sumo
https://wordpress.org/plugins/sumome/
Over 100,000 active installs
Sumo Demo
Sumo Test Results
• The trigger to open the modal must get keyboard focus. ✅
• There should be a warning that a new window will open. ❌
• Focus must go to the modal when opened, and be visible. ✅
• Tabbing must cycle round the links within the modal until dismissed. ❌
• Focus must return to the element on the page which the modal was
opened from. ❌
FORMS
How Should Accessible Forms
Work?
• All inputs should have a form label, and the label
should be associated with the form control via an id
attribute.
• Related form elements e.g. radio buttons or
checkboxes should be grouped in a <fieldset> with a
<legend>.
• Error messages should be highlighted. For screen
reader users it helps if the errors are listed above the
form.
Gravity Forms
http://www.gravityforms.com
Over A Million WordPress Sites Are Already Using Gravity Forms
Gravity Forms Demo
Fixing Gravity Forms (1)
• WCAG 2.0 form fields for Gravity Forms
• https://en-gb.wordpress.org/plugins/gravity-forms-wcag-20-form-fields/
Fixing Gravity Forms (1)
Fixing Gravity Forms (2)
• Gravity Fieldset for Gravity Forms
• https://en-gb.wordpress.org/plugins/gravity-fieldset-for-gravity-forms/
Fixing Gravity Forms (2)
Gravity Forms + Plugins
• All inputs should have a form label, and the label should
be associated with the form control via an id attribute.
✅
• Related form elements e.g. radio buttons or checkboxes
should be grouped in a <fieldset> with a <legend>. ✅
• Error messages should be highlighted. For screen reader
users it helps if the errors are listed above the form. ✅
Summary
• Plugin developers have a responsibility to code their plugins
for everyone
• These plugins are used on millions of sites
• Accessible features are better coded in from the start, but
problems can be fixed if you know how
• Accessible plugins = more accessible sites = better for all!
Thank You!
• www.abrightclearweb.com
• claire@abrightclearweb.com
• @abrightclearweb
Questions?

More Related Content

Recently uploaded

一比一原版(Polytechnic毕业证书)新加坡理工学院毕业证原件一模一样
一比一原版(Polytechnic毕业证书)新加坡理工学院毕业证原件一模一样一比一原版(Polytechnic毕业证书)新加坡理工学院毕业证原件一模一样
一比一原版(Polytechnic毕业证书)新加坡理工学院毕业证原件一模一样AS
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样ayvbos
 
[Hackersuli] Élő szövet a fémvázon: Python és gépi tanulás a Zeek platformon
[Hackersuli] Élő szövet a fémvázon: Python és gépi tanulás a Zeek platformon[Hackersuli] Élő szövet a fémvázon: Python és gépi tanulás a Zeek platformon
[Hackersuli] Élő szövet a fémvázon: Python és gépi tanulás a Zeek platformonhackersuli
 
原版定制英国赫瑞瓦特大学毕业证原件一模一样
原版定制英国赫瑞瓦特大学毕业证原件一模一样原版定制英国赫瑞瓦特大学毕业证原件一模一样
原版定制英国赫瑞瓦特大学毕业证原件一模一样AS
 
一比一原版贝德福特大学毕业证学位证书
一比一原版贝德福特大学毕业证学位证书一比一原版贝德福特大学毕业证学位证书
一比一原版贝德福特大学毕业证学位证书F
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrHenryBriggs2
 
Down bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirtsrahman018755
 
Washington Football Commanders Redskins Feathers Shirt
Washington Football Commanders Redskins Feathers ShirtWashington Football Commanders Redskins Feathers Shirt
Washington Football Commanders Redskins Feathers Shirtrahman018755
 
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptxResearch Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptxi191686
 
APNIC Updates presented by Paul Wilson at CaribNOG 27
APNIC Updates presented by Paul Wilson at  CaribNOG 27APNIC Updates presented by Paul Wilson at  CaribNOG 27
APNIC Updates presented by Paul Wilson at CaribNOG 27APNIC
 
APNIC Policy Roundup presented by Sunny Chendi at TWNOG 5.0
APNIC Policy Roundup presented by Sunny Chendi at TWNOG 5.0APNIC Policy Roundup presented by Sunny Chendi at TWNOG 5.0
APNIC Policy Roundup presented by Sunny Chendi at TWNOG 5.0APNIC
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdfMatthew Sinclair
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdfMatthew Sinclair
 
一比一原版(毕业证书)新西兰怀特克利夫艺术设计学院毕业证原件一模一样
一比一原版(毕业证书)新西兰怀特克利夫艺术设计学院毕业证原件一模一样一比一原版(毕业证书)新西兰怀特克利夫艺术设计学院毕业证原件一模一样
一比一原版(毕业证书)新西兰怀特克利夫艺术设计学院毕业证原件一模一样AS
 
一比一原版英国格林多大学毕业证如何办理
一比一原版英国格林多大学毕业证如何办理一比一原版英国格林多大学毕业证如何办理
一比一原版英国格林多大学毕业证如何办理AS
 
一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理F
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.krishnachandrapal52
 
A LOOK INTO NETWORK TECHNOLOGIES MAINLY WAN.pptx
A LOOK INTO NETWORK TECHNOLOGIES MAINLY WAN.pptxA LOOK INTO NETWORK TECHNOLOGIES MAINLY WAN.pptx
A LOOK INTO NETWORK TECHNOLOGIES MAINLY WAN.pptxthinamazinyo
 
一比一原版澳大利亚迪肯大学毕业证如何办理
一比一原版澳大利亚迪肯大学毕业证如何办理一比一原版澳大利亚迪肯大学毕业证如何办理
一比一原版澳大利亚迪肯大学毕业证如何办理SS
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制pxcywzqs
 

Recently uploaded (20)

一比一原版(Polytechnic毕业证书)新加坡理工学院毕业证原件一模一样
一比一原版(Polytechnic毕业证书)新加坡理工学院毕业证原件一模一样一比一原版(Polytechnic毕业证书)新加坡理工学院毕业证原件一模一样
一比一原版(Polytechnic毕业证书)新加坡理工学院毕业证原件一模一样
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
[Hackersuli] Élő szövet a fémvázon: Python és gépi tanulás a Zeek platformon
[Hackersuli] Élő szövet a fémvázon: Python és gépi tanulás a Zeek platformon[Hackersuli] Élő szövet a fémvázon: Python és gépi tanulás a Zeek platformon
[Hackersuli] Élő szövet a fémvázon: Python és gépi tanulás a Zeek platformon
 
原版定制英国赫瑞瓦特大学毕业证原件一模一样
原版定制英国赫瑞瓦特大学毕业证原件一模一样原版定制英国赫瑞瓦特大学毕业证原件一模一样
原版定制英国赫瑞瓦特大学毕业证原件一模一样
 
一比一原版贝德福特大学毕业证学位证书
一比一原版贝德福特大学毕业证学位证书一比一原版贝德福特大学毕业证学位证书
一比一原版贝德福特大学毕业证学位证书
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
Down bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirtsDown bad crying at the gym t shirts
Down bad crying at the gym t shirtsDown bad crying at the gym t shirts
 
Washington Football Commanders Redskins Feathers Shirt
Washington Football Commanders Redskins Feathers ShirtWashington Football Commanders Redskins Feathers Shirt
Washington Football Commanders Redskins Feathers Shirt
 
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptxResearch Assignment - NIST SP800 [172 A] - Presentation.pptx
Research Assignment - NIST SP800 [172 A] - Presentation.pptx
 
APNIC Updates presented by Paul Wilson at CaribNOG 27
APNIC Updates presented by Paul Wilson at  CaribNOG 27APNIC Updates presented by Paul Wilson at  CaribNOG 27
APNIC Updates presented by Paul Wilson at CaribNOG 27
 
APNIC Policy Roundup presented by Sunny Chendi at TWNOG 5.0
APNIC Policy Roundup presented by Sunny Chendi at TWNOG 5.0APNIC Policy Roundup presented by Sunny Chendi at TWNOG 5.0
APNIC Policy Roundup presented by Sunny Chendi at TWNOG 5.0
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
一比一原版(毕业证书)新西兰怀特克利夫艺术设计学院毕业证原件一模一样
一比一原版(毕业证书)新西兰怀特克利夫艺术设计学院毕业证原件一模一样一比一原版(毕业证书)新西兰怀特克利夫艺术设计学院毕业证原件一模一样
一比一原版(毕业证书)新西兰怀特克利夫艺术设计学院毕业证原件一模一样
 
一比一原版英国格林多大学毕业证如何办理
一比一原版英国格林多大学毕业证如何办理一比一原版英国格林多大学毕业证如何办理
一比一原版英国格林多大学毕业证如何办理
 
一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理一比一原版犹他大学毕业证如何办理
一比一原版犹他大学毕业证如何办理
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.
 
A LOOK INTO NETWORK TECHNOLOGIES MAINLY WAN.pptx
A LOOK INTO NETWORK TECHNOLOGIES MAINLY WAN.pptxA LOOK INTO NETWORK TECHNOLOGIES MAINLY WAN.pptx
A LOOK INTO NETWORK TECHNOLOGIES MAINLY WAN.pptx
 
一比一原版澳大利亚迪肯大学毕业证如何办理
一比一原版澳大利亚迪肯大学毕业证如何办理一比一原版澳大利亚迪肯大学毕业证如何办理
一比一原版澳大利亚迪肯大学毕业证如何办理
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Making Popular WordPress Plugins More Accessible

  • 1. Making Popular WordPress Plugins More Accessible Claire Brotherton WordCamp Edinburgh, July 2017 @abrightclearweb
  • 2. Why Does Plugin Accessibility Matter? • WordPress is used by 28.3% of all websites 
 
 (https://w3techs.com/technologies/details/cm-wordpress/all/ all) • Over 51,000 plugins are available on WordPress.org • 1 in 5 people in the UK have a disability
 
 (https://www.gov.uk/government/uploads/system/uploads/ attachment_data/file/600465/family-resources- survey-2015-16.pdf)
  • 3. How To Test Plugins For Accessibility? • Keyboard (motor disability) • Screen reader (visual impairment). Free ones are: • NVDA (Windows) - best with Firefox 
 https://www.nvaccess.org • VoiceOver (Mac & iOS, built-in) - best with Safari

  • 4. If We Find Plugin Accessibility Issues, How Can We Fix Them? • Leave a message on WordPress.org forums
 • Premium plugins: contact their support
 • Use a plugin to improve the accessibility of the one we want to use
 • Find alternative plugins without accessibility issues
  • 6. Which Are The Main Focusable HTML Elements? • Links <a> • Form elements e.g. <input> • Buttons <button> • https://allyjs.io/data-tables/focusable.html
  • 7. Making Other HTML Elements Focusable The tabindex value can allow for some interesting behaviour. • If given a value of "-1", the element can't be tabbed to but focus can be given to the element programmatically (using element.focus()).
 • If given a value of 0, the element can be focused via the keyboard and falls into the tabbing flow of the document.
 • https://snook.ca/archives/accessibility_and_usability/ elements_focusable_with_tabindex
  • 9. Visible Focus Styles Mac users - blue focus ring VoiceOver users - black border
  • 10. Chrome User? • Focus Indicator (Chrome extension) • https://chrome.google.com/webstore/detail/focus-indicator/ heeoeadndnhebmfebjccbhmccmaoedlf
  • 11. How To Navigate With The Keyboard • Tab key to go forwards • Shift + Tab to go backwards • Enter to click link/button • Space to activate buttons / check checkboxes
  • 12. How To Navigate With The Keyboard • Arrow keys to navigate radio
 buttons • Esc key to close dialogs • If something is accessible via keyboard, it’s normally accessible via a screen reader too
  • 14. How Should An Accessible Lightbox Work? • The trigger to open the lightbox must get keyboard focus. • There should be a warning that a new window will open. • Focus must go to the lightbox when opened, and be visible. • Lightbox image(s) must have alt text. • Tabbing must cycle round the links within the lightbox until dismissed. • Focus must return to the element on the page which the lightbox was opened from. • http://www.coolfields.co.uk/2011/12/specification-for-an-accessible-lightbox/
  • 17. Nextgen Gallery Test Results (Keyboard) • No instructions given that clicking on a thumbnail will open a larger image. • The focus style on the thumbnails is very hard to see. • Opens the lightbox but the focus remains in the window below. So tabbing through I could return to an unexpected place. • Can’t focus on the lightbox X to close. Only the Esc key works. • Arrow keys move the lightbox images forward/back - but is this obvious to users?
  • 19. NextGEN Gallery Test Results (VoiceOver) • Focus style is better thanks toVoiceOver’s default style. • We had the same issues with the focus not moving to the lightbox. • VoiceOver read out the filename for most of the thumbnail images. It’s not enough to add the alt text in WordPress Media Library - you must add it in Next Gen Gallery’s settings too. • Image links should tell the user the destination of the link, so should read something like “Open a panel with larger version of figure holding a bunch of grapes in close-up”.
  • 20. NextGEN Gallery Test Results • The trigger to open the lightbox must get keyboard focus. ✅ • There should be a warning that a new window will open. ❌ • Focus must go to the lightbox when opened, and be visible. ❌ • Lightbox image(s) must have alt text. ❌ • Tabbing must cycle round the links within the lightbox until dismissed. ❌ • Focus must return to the element on the page which the lightbox was opened from. ❌
  • 21. What We Can Do To Fix Lightbox Accessibility Issues? • Add alt text to images (the NextGEN Gallery way) and use descriptive filenames. • Raise issues with the plugin’s developer on the WordPress.org forums. • No suitable replacement plugin, unfortunately. • Lity is an accessible lightbox but isn’t in the form of a WordPress plugin. It doesn’t show multiple images. • http://sorgalla.com/lity/
  • 25. MailMunch Test Results • Not keyboard accessible - focus remains behind the modal, on the page. • Even the Esc key didn’t work. • No email subscribers for you!
  • 28. Sumo Test Results • The trigger to open the modal must get keyboard focus. ✅ • There should be a warning that a new window will open. ❌ • Focus must go to the modal when opened, and be visible. ✅ • Tabbing must cycle round the links within the modal until dismissed. ❌ • Focus must return to the element on the page which the modal was opened from. ❌
  • 29. FORMS
  • 30. How Should Accessible Forms Work? • All inputs should have a form label, and the label should be associated with the form control via an id attribute. • Related form elements e.g. radio buttons or checkboxes should be grouped in a <fieldset> with a <legend>. • Error messages should be highlighted. For screen reader users it helps if the errors are listed above the form.
  • 31. Gravity Forms http://www.gravityforms.com Over A Million WordPress Sites Are Already Using Gravity Forms
  • 33. Fixing Gravity Forms (1) • WCAG 2.0 form fields for Gravity Forms • https://en-gb.wordpress.org/plugins/gravity-forms-wcag-20-form-fields/
  • 35. Fixing Gravity Forms (2) • Gravity Fieldset for Gravity Forms • https://en-gb.wordpress.org/plugins/gravity-fieldset-for-gravity-forms/
  • 37. Gravity Forms + Plugins • All inputs should have a form label, and the label should be associated with the form control via an id attribute. ✅ • Related form elements e.g. radio buttons or checkboxes should be grouped in a <fieldset> with a <legend>. ✅ • Error messages should be highlighted. For screen reader users it helps if the errors are listed above the form. ✅
  • 38. Summary • Plugin developers have a responsibility to code their plugins for everyone • These plugins are used on millions of sites • Accessible features are better coded in from the start, but problems can be fixed if you know how • Accessible plugins = more accessible sites = better for all!
  • 39. Thank You! • www.abrightclearweb.com • claire@abrightclearweb.com • @abrightclearweb Questions?