Skip to content

Commit

Permalink
Merge pull request #69 from communitiesuk/accordion-screen-reader
Browse files Browse the repository at this point in the history
remove extra commas - currently read out by screen reader
  • Loading branch information
kateriley1 committed May 12, 2023
2 parents 5d50488 + 8297cfc commit c59f2ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uk_gov_dash_components",
"version": "1.14.0",
"version": "1.14.1",
"description": "Dash components for Gov UK",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/fragments/Accordion.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ class Accordion extends Component {
aria-controls={contentId}
aria-label={
sectionIsOpen
? `Heading at level ${index} is ${accordionHeading},,,, section is open, select to close`
: `Heading at level ${index} is ${accordionHeading},,,, section is closed, select to open`
? `Heading at level ${index} is ${accordionHeading}, section is open, select to close`
: `Heading at level ${index} is ${accordionHeading}, section is closed, select to open`
}
onClick={() => this.openOrCloseAccordionSection(index)}
onKeyDown={(event) => this.handleKeyEvent(event, index)}
Expand Down

0 comments on commit c59f2ad

Please sign in to comment.