Skip to content

Commit

Permalink
fix: add aria stuff to show/hide toogle
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebus-84 committed May 20, 2024
1 parent 2be7fa0 commit 30c7757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/input/d-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class DInput {
</d-button>
)}
{this.hidable && (
<d-button slot="end" clear onClick={this.changePasswordVisibility}>
<d-button slot="end" clear onClick={this.changePasswordVisibility} aria-checked={this.type !== 'password' ? 'true' : 'false'} aria-label="show password" role="switch">
{this.type === 'password' ? showIcon : hideIcon}
</d-button>
)}
Expand Down

0 comments on commit 30c7757

Please sign in to comment.