Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Reset Focus on navigation

$
0
0

I recently had a site developed which was audited for accessibilityThere's a problem for which I can't find a "clean" solution.

To be explicit, let's take a concrete example: this site

Context :

From the home page, you click on the "About us" link. You are redirected to the above page.

The auditor's expected behaviour would be to focus on the first interactive element.

However, the focus shifts to the next interactive element.

Would you have a simple solution (i.e. without adding JS to select the first interactive element) to achieve this behaviour?

Looking at this PR, I have the impression that SvelteKit would have provided a solution, but obviously not ...

I'm really interested in ideas to solve this problem.

Thanks in advance

Technical context: the site is made with svelte kit v2.0 and the node adapter

The website's header code is here


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>