Skip to content

Commit

Permalink
Merge pull request #3026 from statisticsnorway/MIM-2062-Fix-skjul-tit…
Browse files Browse the repository at this point in the history
…tel-på-region-leses-av-voiceover

[MIM-2062] Fix - "Skjul tittel" leses opp av voiceover på region
  • Loading branch information
Carl-OW authored Nov 18, 2024
2 parents 4255ef6 + 3863c1b commit f652ac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/site/pages/default/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h1 data-th-text="${page.displayName}"></h1>
<div class="container">
<div class="row">
<div class="col">
<h2 data-th-if="${region.hideTitle && region.title}" class="sr-only sr-only-focusable mb-5"
<h2 data-th-if="${region.hideTitle && region.title}" class="d-none mb-5"
data-th-text="${region.title}"></h2>
<h2 data-th-if="${!region.hideTitle && region.title}" class="mb-5 mt-2 pt-5"
data-th-text="${region.title}"></h2>
Expand All @@ -158,7 +158,7 @@ <h1 data-th-text="${page.displayName}"></h1>

<!-- Subtitle for content in border-top-green containers -->
<h2 data-th-if="${region.view == 'card' && region.hideTitle && region.title}"
class="sr-only sr-only-focusable mb-5" data-th-text="${region.title}"></h2>
class="d-none mb-5" data-th-text="${region.title}"></h2>
<h2 data-th-if="${region.view == 'card' && !region.hideTitle && region.title}" class="mb-5"
data-th-text="${region.title}"></h2>

Expand Down

0 comments on commit f652ac8

Please sign in to comment.