Skip to content

Commit

Permalink
On branch fix/definition-list-a11y: review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezhik Kyzyl-ool committed Jul 10, 2024
1 parent 626df78 commit 07d9529
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@
"prettier --write"
]
}
}
}
6 changes: 4 additions & 2 deletions src/components/DefinitionList/components/Term.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ function NoteElement({note}: NoteElementsProps) {
}

if (typeof note === 'object') {
const {buttonProps, ...rest} = note;

return (
<HelpPopover
className={popoverClassName}
placement={['bottom', 'top']}
{...note}
buttonProps={{
'aria-label': i18n('label_note'),
...note.buttonProps,
...buttonProps,
}}
{...rest}
/>
);
}
Expand Down

0 comments on commit 07d9529

Please sign in to comment.