Icons are great and all, but as we've been shown time and time again, they often don't do the job all by themselves. Even if you do a good job with the accessibility part and make sure there is accompanying text there for assistive technology, in an ironic twist, you might be confusing people who browse visually, like the situation Matt Wilcox describes with his mother in this linked article.
I'm a fan of this markup pattern, including the inline SVG as the preferred icon system:
<button>
<svg class="icon icon-cart" viewBox="0 0 100 100" aria-hidden="true">
<!-- all your hot svg action, like: -->
<path d=" ... " />
</svg>
Add to Cart
</button>
Or, if the button is really a link and not a JavaScript-powered action, I'll use an <a href="">
instead of a <button>
wrapper.
Direct Link to Article — Permalink
The post The ineffectiveness of lonely icons appeared first on CSS-Tricks.
from CSS-Tricks https://mattwilcox.net/musing/the-ineffectiveness-of-icons
The ineffectiveness of lonely icons was first published on Instant Web Site Tools
source https://www.instant-web-site-tools.com/2019/02/11/the-ineffectiveness-of-lonely-icons/
No comments:
Post a Comment