Skip to content

Commit

Permalink
Add missing type attribute on accordion buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jan 21, 2025
1 parent 18fc6e3 commit af95eec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Deprecated
### Removed
### Fixed

- Added missing `type` attribute on accordion buttons

### Security

## [0.8.0](https://github.com/nationalarchives/tna-frontend/compare/v0.7.2...v0.8.0) - 2025-01-15
Expand Down
1 change: 1 addition & 0 deletions src/nationalarchives/components/accordion/accordion.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class Accordion {

const $headingButton = document.createElement("button");
$headingButton.classList.add("tna-accordion__summary");
$headingButton.setAttribute("type", "button");
$headingButton.setAttribute("aria-controls", $content.id);
$heading.parentNode.insertBefore($headingButton, $heading.nextSibling);
$headingButton.appendChild($heading);
Expand Down

0 comments on commit af95eec

Please # to comment.