Comments (5)
Working demo: http://codepen.io/davatron5000/full/pxoKf
Uses aria-hidden="true"
to hide content. aria-role="presentation"
seems like it would be more ideal/semantic, but was designed to read child elements with no semantic value.
Downsides: Duplicates DOM nodes could have SEO impact. Ideally, ARIA would provide a way for semantic elements that are aria-hidden
to have an accessible fallback using something like aria-label
or aria-describedby
.
from lettering.js.
@davatron5000 aria-hidden="true"
is sort of well supported, and seems like the best solution here, but you might be able to use the aria-label
attribute on the parent element here.
from lettering.js.
Either way, it make for a much better experience when using Assistive Technology. I think the little amount of SEO impact you would have would be so small, that @davatron5000's solution would be worth it.
from lettering.js.
@bassettsj WOOO. GREAT. I forked your pen b/c it wasn't working for me, but this looks like an infinitely better way to do this.
With mine, I was hesitant about duplicating content, but your way preserves it all. I was also hesitant about breaking the Document Outline, but running it through VoiceOver & ChromeVox makes me think it'll hold together nicely. Wonderful work.
If you want to put together a commit and get the credit, I'll merge it in.
from lettering.js.
Accessibility improvements were merged in and are apart of the 0.7.0
release. Hooray! Thanks everyone who helped out on this. Means a lot and solves a somewhat shameful problem I've had for a long long time.
🎆 🏆 👯
from lettering.js.
Related Issues (20)
- Is it possible to respect html tags? HOT 1
- Minified source? HOT 2
- Not Working in Blogger HOT 9
- Is there an option for using actual words as class names? HOT 1
- What license is this distributed under? HOT 1
- Webpack usage HOT 2
- Feature: Wrap all letters in a specific class HOT 3
- Unicode support HOT 1
- It's not working for me, wordpress HOT 2
- what am I doing wrong? HOT 1
- Character Coloring HOT 1
- No dependency HOT 1
- empty character disappear when display: inline-block HOT 2
- Events HOT 1
- lettering jquery plugin not working !! HOT 1
- Double wrap 'lines'
- Security issue: XSS for methods 'lines' and 'words'
- Emoji support HOT 3
- lettering('lines') not working HOT 3
- Words break into next line HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lettering.js.