Skip to content

Commit

Permalink
Merge pull request #799 from danskernesdigitalebibliotek/DDFLSBP-177-…
Browse files Browse the repository at this point in the history
…header-semantics

Use correct semantics for header
  • Loading branch information
JacobArrow authored Jan 2, 2024
2 parents 5c31634 + 33ce86e commit 618c7bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/apps/loan-list/list/ListHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ListHeader: FC<ListHeaderProps> = ({ header, amount, children }) => {
<div className="dpl-list-buttons">
<h2 className="dpl-list-buttons__header">
{header}
<div className="dpl-list-buttons__power">{amount}</div>
<span className="dpl-list-buttons__power">{amount}</span>
</h2>
<div className="dpl-list-buttons__buttons">{children}</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/apps/reservation-list/list/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const List: FC<ListProps> = ({
<h2 className="dpl-list-buttons__header">
<>
{header}
<div className="dpl-list-buttons__power">0</div>
<span className="dpl-list-buttons__power">0</span>
</>
</h2>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/list-header/list-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ListHeader: FC<ListHeaderProps> = ({
<h2 data-cy={dataCy} className="dpl-list-buttons__header">
{header}
{amount !== null && (
<div className="dpl-list-buttons__power">{amount}</div>
<span className="dpl-list-buttons__power">{amount}</span>
)}
</h2>
<div className="dpl-list-buttons__buttons">{children}</div>
Expand Down

0 comments on commit 618c7bc

Please sign in to comment.