Skip to content

Commit

Permalink
fix: empty ARIA attributes in web component
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Oct 4, 2021
1 parent 205c58a commit 0ad018c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/form-field-checkbox/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class FormFieldCheckbox {
type="checkbox"
checked={checked}
disabled={disabled}
aria-invalid={invalid}
aria-invalid={invalid ? "true" : null}
required={required}
value={value}
onBlur={(evt) => this.utrechtBlur.emit(evt)}
Expand Down
2 changes: 1 addition & 1 deletion components/form-toggle/stencil.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class FormToggle {
)}
tabIndex={disabled ? null : 0}
role="switch"
aria-disabled={disabled}
aria-disabled={disabled ? "true" : null}
onClick={handleClick}
onKeyPress={handleKeyPress}
onKeyUp={handleKeyUp}
Expand Down

0 comments on commit 0ad018c

Please sign in to comment.