mirror of
https://github.com/inventree/inventree-website.git
synced 2025-04-27 21:16:45 +00:00
Accessibility improvements (#53)
* add alt tags to lear more * make logo section better screenreadable * enhance contrast on footer * add alt text to back button * switch colors -> maybe better contrast on links? * make link text better readable * switch color back * and another try * Revert "and another try" This reverts commit cb58c92c51877ce07771cb1a95ffb8d5e460beee.
This commit is contained in:
parent
ef5ccc5fae
commit
f149e61244
@ -27,16 +27,16 @@
|
|||||||
|
|
||||||
<div class="bg-gray-100">
|
<div class="bg-gray-100">
|
||||||
<div class="container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row">
|
<div class="container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row">
|
||||||
<p class="cm-gray-3 text-sm text-center sm:text-left">© 2021-now {{ site.title }} by<a href="https://github.com/inventree" rel="noopener" class="cm-gray-2 ml-1" target="_blank">@inventree</a>— website made with ♥ by<a href="https://github.com/matmair" rel="noopener" class="cm-gray-2 ml-1" target="_blank">@matmair</a></p>
|
<p class="cm-gray-2 text-sm text-center sm:text-left">© 2021-now {{ site.title }} by<a href="https://github.com/inventree" rel="noopener" class="cm-gray-2 ml-1" target="_blank">@inventree</a>— website made with ♥ by<a href="https://github.com/matmair" rel="noopener" class="cm-gray-2 ml-1" target="_blank">@matmair</a></p>
|
||||||
<span class="inline-flex sm:ml-auto sm:mt-0 mt-2 justify-center sm:justify-start">
|
<span class="inline-flex sm:ml-auto sm:mt-0 mt-2 justify-center sm:justify-start">
|
||||||
<a href="https://github.com/inventree/inventree" alr="github repo" class="ml-3 cm-gray-3">
|
<a href="https://github.com/inventree/inventree" alt="github repo" class="ml-3 cm-gray-3">
|
||||||
<img class="h-5 w-5" src="{{ '/assets/github.svg' | relative_url }}" />
|
<img class="h-5 w-5" alt="GitHub logo" src="{{ '/assets/github.svg' | relative_url }}" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://reddit.com/r/inventree" alr="Reddit" class="ml-3 cm-gray-3">
|
<a href="https://reddit.com/r/inventree" alt="Reddit" class="ml-3 cm-gray-3">
|
||||||
<img class="h-5 w-5" src="{{ '/assets/reddit.svg' | relative_url }}" />
|
<img class="h-5 w-5" alt= "Reddit logo" src="{{ '/assets/reddit.svg' | relative_url }}" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://twitter.com/inventreedb" alr="Twitter" class="ml-3 cm-gray-3">
|
<a href="https://twitter.com/inventreedb" alt="Twitter" class="ml-3 cm-gray-3">
|
||||||
<img class="h-5 w-5" src="{{ '/assets/twitter.svg' | relative_url }}" />
|
<img class="h-5 w-5" alt="Twitter logo" src="{{ '/assets/twitter.svg' | relative_url }}" />
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<h1 class="header-text title-font mb-2 cm-gray-1">{{ include.data.title }}</h1>
|
<h1 class="header-text title-font mb-2 cm-gray-1">{{ include.data.title }}</h1>
|
||||||
{% if include.link %}
|
{% if include.link %}
|
||||||
{% assign link=include.data.link|default:include.link %}
|
{% assign link=include.data.link|default:include.link %}
|
||||||
<a href="{% include fnc/link.html item=link %}" alt="learn more"><img class="w-4 h-4 ml-2" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
|
<a href="{% include fnc/link.html item=link %}" alt="learn more" class="color-link"><img class="w-4 h-4 ml-2" alt="Arrow pointing right" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="h-1 w-20 bg-secondary rounded"></div>
|
<div class="h-1 w-20 bg-secondary rounded"></div>
|
||||||
@ -25,7 +25,7 @@
|
|||||||
{% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
|
{% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% if item.link %}
|
{% if item.link %}
|
||||||
<a class="text-secondary inline-flex items-center" href="{% include fnc/link.html item=item.link %}" alt="learn more">Learn More <img class="w-4 h-4 ml-2" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
|
<a class="text-secondary inline-flex items-center" href="{% include fnc/link.html item=item.link %}" alt="learn more">Learn More <img class="w-4 h-4 ml-2" alt="Arrow pointing right" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
{% if include.data.title %}<h1 class="header-text title-font mb-4 cm-gray-1">{{ include.data.title }}</h1>{% endif %}
|
{% if include.data.title %}<h1 class="header-text title-font mb-4 cm-gray-1">{{ include.data.title }}</h1>{% endif %}
|
||||||
{% if include.data.text %}<p class="lg:w-2/3 mx-auto leading-relaxed text-base">{{ include.data.text }}</p>{% endif %}
|
{% if include.data.text %}<p class="lg:w-2/3 mx-auto leading-relaxed text-base">{{ include.data.text }}</p>{% endif %}
|
||||||
{% if include.data.link and include.no_link != true %}
|
{% if include.data.link and include.no_link != true %}
|
||||||
<a class="text-secondary inline-flex items-center justify-center" href="{% include fnc/link.html item=include.data.link %}" alt="learn more">Learn More <img class="w-4 h-4 ml-2" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
|
<a class="text-secondary inline-flex items-center justify-center color-link" href="{% include fnc/link.html item=include.data.link %}" alt="learn more">Learn More <img class="w-4 h-4 ml-2" alt="Arrow pointing right" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -25,7 +25,7 @@
|
|||||||
{% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
|
{% if include.extend and item.extend %}<br><br>{{ item.extend }}{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% if item.link %}
|
{% if item.link %}
|
||||||
<a class="text-secondary inline-flex items-center" href="{% include fnc/link.html item=item.link %}" alt="learn more">Learn More <img class="w-4 h-4 ml-2" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
|
<a class="text-secondary inline-flex items-center color-link" href="{% include fnc/link.html item=item.link %}" alt="learn more">Learn More <img class="w-4 h-4 ml-2" alt="Arrow pointing right" src="{{ '/assets/learn.svg' | relative_url }}" /></a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -5,7 +5,7 @@ layout: default
|
|||||||
<header>
|
<header>
|
||||||
{% if page.backLink or page.backLink == nil %}
|
{% if page.backLink or page.backLink == nil %}
|
||||||
<a href="{{ layout.base_link | relative_url }}" class="flex items-center m-5 text-xl hover:underline">
|
<a href="{{ layout.base_link | relative_url }}" class="flex items-center m-5 text-xl hover:underline">
|
||||||
<img class="w-6 h-6" src="{{ '/assets/back.svg' | relative_url }}" />
|
<img class="w-6 h-6" alt="go back" src="{{ '/assets/back.svg' | relative_url }}" />
|
||||||
<span>Back</span>
|
<span>Back</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -59,6 +59,10 @@ layout: empty
|
|||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.color-link {
|
||||||
|
@apply text-secondary
|
||||||
|
}
|
||||||
|
|
||||||
.badge {
|
.badge {
|
||||||
@apply py-1 px-2.5 rounded-full
|
@apply py-1 px-2.5 rounded-full
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user