Skip to content

Commit

Permalink
Søketreff: role=alert (#319)
Browse files Browse the repository at this point in the history
Må bruke alert på info om treff for å sikre opplesing i skjermleser
  • Loading branch information
PerOlavM authored Jun 25, 2024
1 parent a806b57 commit fda4bea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/views/search-hits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const SearchHits = ({
}: SearchHitsProps) => html`
<div class="${cls.searchHits}">
<div>
<h2 role="status" class="${cls.heading}">
<h2 role="alert" class="${cls.heading}">
${total.toString()} ${texts.hits_for}${" "}
<span class="${cls.quoted}">${query}</span>
${` for ${context}`}
Expand Down

0 comments on commit fda4bea

Please sign in to comment.