fix(search|a11y): avoid input focus#1213
Conversation
47869ad to
452a3e4
Compare
Before #1153, we had a live region announcement of the search results count (which you implemented ;-)). Since it was broken by the new component, it's reintroduced here. It's not a title, cf the debug logs in console: |
Yep I remember 😁 |
I don't remember either 😬 Should they? Seems a bit redundant if live region is updated, no? |
|
I think the title and the live region were both updated on route change but it should be tested with a screen reader to be sure. |
"XX résultats" is now upstream, so this might be hard. |
It might be enough because it has a <p
class="fr-col-auto my-0"
role="status"
data-testid="search-result-count"
>
{{ t("{count} résultats | {count} résultat | {count} résultats", searchResults.total) }}
</p>When testing this branch with a screen reader, the "live title" is annouced twice and the results are also announced since |
|
@narduin so I should remove results announcement feature from this PR? |
I believe so, yes. |
|
/deploy ecospheres |
Depends datagouv/cdata#1096
Fix ecolabdata/ecospheres#1115