fix: add a screen reader-only text for the "Close" button

This commit is contained in:
Dorian Niemiec 2024-11-06 16:13:30 +01:00
parent 462897de32
commit f9d166fbfe

View file

@ -117,6 +117,7 @@ function Header({ docLinks }) {
}}
className="inline-block md:hidden self-center"
>
<span className="sr-only">Close</span>
<X className="inline-block w-8 h-8 py-1 rounded-sm bg-background text-foreground hover:bg-accent/60 hover:text-accent-foreground transition-colors" />
</button>
</div>