Skip to content

Commit d63f9cd

Browse files
committed
Changed all headings from h1 to h2
1 parent 5db1a96 commit d63f9cd

6 files changed

Lines changed: 14 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
- In de vorige versies werd bij het openen van het feature modal een standaard `padding-right` van `17px` op de `body` class toegepast (`body.gh-dim-modal-open`) om de ruimte te compenseren voor het verwijderen van de browser scrollbar. Deze waarde kan echter verschillen per scherm en device en wordt daarom nu dynamisch bepaald en wordt direct toegepast op `body.style.paddingRight`. Mogelijk heeft dit invloed op eigen styling.
1+
- **Let op!** Er zijn diverse aanpassingen doorgevoerd die invloed kunnen hebben op hoe DataInMap wordt weergegeven. Bij een eigen stylesheet moeten mogelijk ook wijzigingen worden doorgevoerd. Lees onderstaande notities goed door!
2+
- De diverse componenten maakten gebruik van `h1`-koppen. Dit is aangepast naar `h2`, zodat een pagina beperkt kan blijven tot één `h1`-kop.
3+
- In de vorige versies werd bij het openen van het feature modal een standaard `padding-right` van `17px` op de `body` toegepast (`body.gh-dim-modal-open`) om de ruimte te compenseren voor het verwijderen van de browser scrollbar. Deze waarde kan echter verschillen per scherm en device en wordt daarom nu dynamisch bepaald en wordt direct toegepast op `body.style.paddingRight`.
24

35
**1.10.11 (2023-11-28)**
46

src/components/feature.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class KMLFeatureComponent extends Component {
4040
return (
4141
<>
4242
<header>
43-
<h1>{feature.name}</h1>
43+
<h2>{feature.name}</h2>
4444
<CloseModal onClick={() => this.props.closeModal()} />
4545
</header>
4646
<section className="gh-dim-feature-content" dangerouslySetInnerHTML={{__html: feature.description}} tabIndex="0" />
@@ -59,7 +59,7 @@ class WMSFeatureComponent extends Component {
5959
return (
6060
<>
6161
<header>
62-
<h1>Informatie</h1>
62+
<h2>Informatie</h2>
6363
<CloseModal onClick={() => this.props.closeModal()} />
6464
</header>
6565
<section className="gh-dim-feature-content" dangerouslySetInnerHTML={{__html: feature}} tabIndex="0" />
@@ -84,7 +84,7 @@ class DIMFeatureComponent extends Component {
8484
return (
8585
<>
8686
<header>
87-
<h1 dangerouslySetInnerHTML={{__html: title}}></h1>
87+
<h2 dangerouslySetInnerHTML={{__html: title}}></h2>
8888
<CloseModal onClick={() => this.props.closeModal()} />
8989
</header>
9090
<section className="gh-dim-feature-content" dangerouslySetInnerHTML={{__html: feature.content}} tabIndex="0" />

src/components/featureslistbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class FeaturesListboxComponent extends Component {
136136
<div className="gh-dim-features-listbox" tabIndex="0" onKeyDown={(e) => this.keyboardNavigation(e)} onBlur={(e) => this.setState({currentResult: null})}>
137137
<section aria-labelledby={this.headerId}>
138138
<header>
139-
<h1 id={this.headerId}>Gevonden locaties <span>({totalResults > 100 ? '100+' : totalResults})</span></h1>
139+
<h2 id={this.headerId}>Gevonden locaties <span>({totalResults > 100 ? '100+' : totalResults})</span></h2>
140140
</header>
141141
<div className="gh-dim-features-listbox-content" ref={this.listboxContainer}>
142142
<ul aria-live="polite" role="listbox" aria-label="Locaties zichtbaar op de kaart" aria-activedescendant={activeDescendant} aria-expanded={expanded}>

src/components/filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class FilterComponent extends Component {
5656
<div className="gh-dim-filter" tabIndex="0" onKeyDown={blur}>
5757
<section aria-labelledby={id}>
5858
<header>
59-
<h1 id={id}>Filters</h1>
59+
<h2 id={id}>Filters</h2>
6060
</header>
6161
<div className="gh-dim-filters">
6262
{this.props.description &&

src/components/toggler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class TogglerComponent extends Component {
7373
<div className="gh-dim-toggler" tabIndex="0" onKeyDown={blur}>
7474
<section aria-labelledby={id}>
7575
<header>
76-
<h1 id={id}>Lagen</h1>
76+
<h2 id={id}>Lagen</h2>
7777
</header>
7878
<div className="gh-dim-togglers">
7979
{this.props.description &&

src/scss/style.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $shadow-color: rgba(0, 0, 0, 0.5);
8585
}
8686
}
8787

88-
header h1 {
88+
header h2 {
8989
background-color:$bgcolor-button-hover;
9090
text-align:left;
9191
}
@@ -94,7 +94,7 @@ $shadow-color: rgba(0, 0, 0, 0.5);
9494
header {
9595
margin:0 -20px;
9696
background-color:$bgcolor-button-neutral;
97-
h1 {
97+
h2 {
9898
@include font-size(14px);
9999
margin:0;
100100
padding:10px;
@@ -355,15 +355,15 @@ $shadow-color: rgba(0, 0, 0, 0.5);
355355
}
356356
}
357357

358-
header h1 {
358+
header h2 {
359359
background-color:$bgcolor-button-hover;
360360
}
361361
}
362362

363363
header {
364364
margin:0 -20px;
365365
background-color:$bgcolor-button-neutral;
366-
h1 {
366+
h2 {
367367
@include font-size(14px);
368368
margin:0;
369369
padding:10px;
@@ -461,7 +461,7 @@ body.gh-dim-modal-open {
461461
padding:10px 0px 15px 15px;
462462
background-color:$bgcolor-feature-header;
463463
border-radius:6px 6px 0 0;
464-
h1 {
464+
h2 {
465465
@include font-size(24px);
466466
margin:0;
467467
color:#FFF;

0 commit comments

Comments
 (0)