This rules, it is exactly what I have been dreading having to create for a project I am currently working on. Not sure if you are the creator (edit: you probably are, I just saw your username here matches the twitter account in the comments) but the Usablica & Github links at the top link to #
I'm the creator :) I'm so glad if it was useful for you.
Label.css – an easy way to label DOM elements
11–20 of 28 posts
Re: Label.css – an easy way to label DOM elements
#12Zero JS.
If you haven't played with CSS3 lately you might be surprised what it can do. I know I was a blown away when I discovered it could do data binding. Brings to mind a great I/O talk that introduced me to a lot of this stuff:
Re: Label.css – an easy way to label DOM elements
#13It may make sense to append the label information to whatever is being used for the image's ALT attribute.
Re: Label.css – an easy way to label DOM elements
#14Re: Label.css – an easy way to label DOM elements
#15Re: Label.css – an easy way to label DOM elements
#16Re: Label.css – an easy way to label DOM elements
#17While I like the simplicity of this, I would recommend to keep accessibility in mind: information put into a data attribute will not be accessible to screenreaders, and they would miss any information stored via this method. It may make sense to append the label information to whatever is being used for the image's ALT attribute.
Re: Label.css – an easy way to label DOM elements
#18Re: Label.css – an easy way to label DOM elements
#19See https://developer.mozilla.org/en-US/docs/Accessibility/ARIA/... for info and http://freedomscientific.com/products/fs/JAWS-product-page.a... for a demo of the most popular screen reader for blind users.
You might also want to think about tying your CSS colors to system colors, to support users who use High Contrast mode.
Re: Label.css – an easy way to label DOM elements
#20Fun fact: Even if Mr. Emrani has put a copyright notice in the README.md, it doesn't apply in the United States! I wonder if the warranty notice is also also moot?