Skip to content

Commit

Permalink
fix(core/event-list-item): add aria-disabled attribute to list element (
Browse files Browse the repository at this point in the history
#1243)

Co-authored-by: Daniel Leroux <[email protected]>
  • Loading branch information
nuke-ellington and danielleroux authored May 2, 2024
1 parent 756bc42 commit b4b06a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-plums-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siemens/ix': patch
---

fix(core/event-list-item): add aria-disabled attribute to list element
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
Listen,
Prop,
} from '@stencil/core';
import { a11yBoolean } from '../utils/a11y';

@Component({
tag: 'ix-event-list-item',
Expand Down Expand Up @@ -86,7 +87,8 @@ export class EventListItem {
disabled: this.disabled,
}}
>
<div
<li
aria-disabled={a11yBoolean(this.disabled)}
class={{
'event-list-item': true,
selected: this.selected,
Expand Down Expand Up @@ -116,7 +118,7 @@ export class EventListItem {
></ix-icon>
)}
</div>
</div>
</li>
</Host>
);
}
Expand Down

0 comments on commit b4b06a6

Please sign in to comment.