♿ fix aria-label for go-back icon in blogheader
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
parent
2e4a9d0ce5
commit
bc0c15838e
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ import ThemeIcon from './ThemeIcon.astro';
|
|||
<script type="module" client:load>
|
||||
const updateSvgColorForTheme = () => {
|
||||
const isDark = document.documentElement.classList.contains('dark');
|
||||
const svgPath = document.getElementById('themePath');
|
||||
const svgPath = document.getElementById('gobackPath');
|
||||
if (svgPath) {
|
||||
svgPath.setAttribute('stroke', isDark ? '#cdd6f4' : '#2E4033');
|
||||
}
|
||||
|
@ -20,8 +20,8 @@ import ThemeIcon from './ThemeIcon.astro';
|
|||
<header class="flex justify-between items-center py-5">
|
||||
<div>
|
||||
<a class="text-l font-semibold" href="/blog">
|
||||
<svg id="themeSvg" class="w-6 h-6" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
||||
<path id="themePath" stroke="#3B2C29" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19-7-7 7-7"/>
|
||||
<svg id="gobackSvg" class="w-6 h-6" aria-label="Go Back Icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
||||
<path id="gobackPath" stroke="#3B2C29" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19-7-7 7-7"/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue