raoenhui / raoenhui.github.io

前端妹子的博客blog
https://raoenhui.github.io
46 stars 3 forks source link

Accessibility errors found in your template #23

Closed wapyce-bot closed 5 years ago

wapyce-bot commented 5 years ago

The user @carlsonsantana validate your site template "https://raoenhui.github.io/" and found these accessibility errors:

You can check these accessibility errors using pa11y. You can view the full validation results in our website.

raoenhui commented 5 years ago

Thank you for suggest , It's great to see the test report. However, some issue I don't know how to fix.

Issue 8113d001-e189-487f-94c0-720d7c36775 Issue c16a07c0-ce0e-4894-9d06-9d5efec3fe1d

http://facebook.com/raoenhui and http://github.com/raoenhui is the link content.

Issue 007e68cc-9198-4536-9deb-ab68a1194994 Issue 1393d2cf-7fcf-4e03-8d76-f66de47c87e8

I think my color is great. So I don't change it.

wapyce-bot commented 5 years ago

In issues 8113d001-e189-487f-94c0-720d7c36775 and c16a07c0-ce0e-4894-9d06-9d5efec3fe1d, you can add a span that hide the content from screen, but that show it content for screen readers like:

<a href="https://github.com/raoenhui" target="_blank">
  <span class="fa-stack fa-lg">
    <i class="fa fa-circle fa-stack-2x fa-inverse"></i>
    <i class="fa fa-github fa-stack-1x"></i>
  </span>
  <span style="position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0,0,0,0);border: 0;">Github</span>
</a>
<a href="https://facebook.com/raoenhui" target="_blank">
  <span class="fa-stack fa-lg">
    <i class="fa fa-circle fa-stack-2x fa-inverse"></i>
    <i class="fa fa-facebook fa-stack-1x"></i>
  </span>
  <span style="position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0,0,0,0);border: 0;">Facebook</span>
</a>
raoenhui commented 5 years ago

@wapyce-bot Thank you for suggest,I fixed it. but I still don't know why I should add this invalid span .

wapyce-bot commented 5 years ago

Visually impaired can use screen readers to browser in web, the most of screen readers cannot understand the content of images, then when you provide a text for a link these users can undertstand the propose of link.

References: https://www.w3.org/TR/WCAG20-TECHS/G91.html https://www.w3.org/TR/WCAG20-TECHS/H30.html https://www.w3.org/TR/WCAG20-TECHS/H2.html

raoenhui commented 5 years ago

I see ,thank you @wapyce-bot 😀