Skip to content

Commit

Permalink
Merge pull request nevercodealone#93 from rogoit/main
Browse files Browse the repository at this point in the history
Accessibility fixes for glossar and navigation.
  • Loading branch information
rogoit authored May 10, 2024
2 parents 4e7f7b4 + 6ece4d3 commit 60bc039
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions assets/website/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
[x-cloak] { display: none; }

a {
@apply text-green-400;
@apply text-green-700;
opacity: unset;
}

a:hover, a:focus {
@apply text-green-500 underline;
@apply text-green-800 underline;
}

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/build/website/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"/build/website/app.f7350905.js"
],
"css": [
"/build/website/960.f1189207.css"
"/build/website/960.38ee983a.css"
]
},
"style": {
"js": [
"/build/website/runtime.d33663a3.js"
],
"css": [
"/build/website/960.f1189207.css"
"/build/website/960.38ee983a.css"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion public/build/website/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"build/website/app.js": "/build/website/app.f7350905.js",
"build/website/runtime.js": "/build/website/runtime.d33663a3.js",
"build/website/236.31bcff30.js": "/build/website/236.31bcff30.js",
"build/website/960.f1189207.css": "/build/website/960.f1189207.css"
"build/website/960.38ee983a.css": "/build/website/960.38ee983a.css"
}
2 changes: 1 addition & 1 deletion templates/base-tailwind.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</div>
</div>
<div class="mt-4 md:order-1 md:mt-0">
<p class="text-center text-base text-gray-400">Never Code Alone</p>
<p class="text-center text-base text-gray-800">Never Code Alone</p>
</div>
</div>
</footer>
Expand Down
5 changes: 4 additions & 1 deletion templates/includes/tailwind/blocks/excerpt-image.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{% if extensionexcerpt.images[0] is defined and extensionexcerpt.images[0] is not empty %}
{% set source = extensionexcerpt.images[0].thumbnails['content-full.webp'] %}
{% set alt = extensionexcerpt.images[0].description %}
<img class="h-auto max-w-full" src="{{ source }}" alt="{{ alt }}">
<figure class="text-center">
<img class="h-auto max-w-full mx-auto" src="{{ source }}" alt="">
<figcaption class="pt-4">{{ alt }}</figcaption>
</figure>
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<img src="{{ source }}"
srcset="{{ sourceSet }} 1023w"
class="h-auto max-w-full"
alt="{{ item.excerptImages[0].description }}"
alt=""
>
{% endif %}
<h3 class="mt-3 text-lg font-semibold leading-6 text-gray-900 group-hover:text-gray-600">
Expand Down
7 changes: 3 additions & 4 deletions templates/includes/tailwind/navigation.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@
{% endfor %}
</nav>
<div class="flex items-center md:ml-12">
<a href="mailto:roland@nevercodealone.de"
class="ml-8 inline-flex items-center justify-center rounded-md border border-transparent bg-green-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-green-700">
E-Mail
</a>
<a href="mailto:roland@nevercodealone.de" class="ml-8 inline-flex items-center justify-center rounded-md border border-transparent bg-green-700 px-4 py-2 text-base font-semibold text-white shadow-sm hover:bg-green-800">
E-Mail
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 60bc039

Please sign in to comment.