Skip to content

Commit

Permalink
Merge pull request #635 from danskernesdigitalebibliotek/DDFFORM-563-…
Browse files Browse the repository at this point in the history
…restructure-heading-tree

Restructure heading tree structure
  • Loading branch information
kasperbirch1 committed May 28, 2024
2 parents 73a5b40 + b477604 commit f03bd11
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/stories/Library/footer-accordions/FooterAccordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const FooterAccordion: FC<FooterAccordionProps> = ({

return (
<>
<h3 className="footer-accordion__header footer__title">
<h2 className="footer-accordion__header footer__title">
<button
className="footer-accordion__header-button"
aria-expanded={isOpen}
Expand All @@ -30,7 +30,7 @@ const FooterAccordion: FC<FooterAccordionProps> = ({
alt=""
/>
</button>
</h3>
</h2>
<div
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: content }}
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Library/footer-colums/FooterColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type FooterColumnType = {
const FooterColumn: FC<FooterColumnType> = ({ title, content }) => {
return (
<>
<h3 className="footer__title">{title}</h3>
<h2 className="footer__title">{title}</h2>
<div
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: content }}
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Library/nav-spot/NavSpot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const NavSpot: FC<NavSpotProps> = ({
</div>

<div className="nav-spot__text">
<h1 className="nav-spot__title">{title}</h1>
<h2 className="nav-spot__title">{title}</h2>

{subtitle ? <p className="nav-spot__subtitle">{subtitle}</p> : ""}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/Library/nav-teaser/NavTeaser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const NavTeaser: FC<NavTeaserProps> = ({ title, subtitle }) => {
return (
<article className="nav-teaser">
<a href="#">
<h1 className="nav-teaser__title">{title}</h1>
<h3 className="nav-teaser__title">{title}</h3>

{subtitle ? <p className="nav-teaser__subtitle">{subtitle}</p> : ""}

Expand Down

0 comments on commit f03bd11

Please sign in to comment.