Skip to content

Commit

Permalink
Added aria-expanded attr to ToggleBlock button (#177)
Browse files Browse the repository at this point in the history
Co-authored-by: KETF <brenton.kelly@civicactions.com>
  • Loading branch information
brentonkelly1982 and KETF authored Feb 1, 2023
1 parent ab51057 commit 4542bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@civicactions/data-catalog-components",
"version": "1.14.0",
"version": "1.15.0",
"description": "React Components for Open Data Catalogs.",
"main": "lib/index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ToggleBlock/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function ToggleBlock({
if (allowToggle) {
toggleBlockHeading = (
<h2 className={headingClasses}>
<button type="button" onClick={() => toggleShow(!show)}>
<button type="button" onClick={() => toggleShow(!show)} aria-expanded={show}>
<FontAwesomeIcon
icon={['fas', show ? 'chevron-down' : 'chevron-right' ]}
size="1x"
Expand Down

0 comments on commit 4542bb7

Please sign in to comment.