Skip to content

Commit

Permalink
feat(acessibility): added aria properties to resolve accessibility is…
Browse files Browse the repository at this point in the history
…sues pointed out by lighthouse
  • Loading branch information
joaocore committed Oct 9, 2023
1 parent a334297 commit dfba4e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react/Drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function Drawer(props: Props) {
<div
onClick={openMenu}
role="presentation"
aria-hidden={isMenuOpen ? 'false' : 'true'}
aria-hidden={!isMenuOpen ? 'false' : 'true'}
className={`pa4 pointer ${handles.openIconContainer}`}
>
{hasTriggerBlock ? (
Expand Down
2 changes: 2 additions & 0 deletions react/DrawerCloseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const DrawerCloseButton: React.FC<Props> = ({
return (
<button
className={`${handles.closeIconButton} pa4 pointer bg-transparent transparent bn pointer`}
id="closeIcon"
aria-label="Close Icon Button"
onClick={close}
>
{text ?? <IconClose size={size} type={type} />}
Expand Down
1 change: 0 additions & 1 deletion react/Swipable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ export default class Swipable extends React.Component<Props> {
public render() {
return (
<div
aria-hidden={this.props.enabled ? 'false' : 'true'}
ref={this.dragContainer}
style={{
...this.props.style,
Expand Down

0 comments on commit dfba4e0

Please sign in to comment.