Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(*): fixable eslint-plugin-vuejs-accessibility issues [KHCP-11024] #2345

Merged
merged 9 commits into from
Aug 21, 2024
1 change: 0 additions & 1 deletion src/components/KCollapse/KCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
:aria-label="triggerLabel ? undefined : 'Toggle content'"
class="collapse-trigger-content"
data-testid="collapse-trigger-content"
role="button"
@click.prevent.stop="toggleDisplay()"
>
<slot name="trigger-content">
Expand Down
1 change: 1 addition & 0 deletions src/components/KMultiselect/KMultiselectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
role="listitem"
>
<div
:aria-selected="item.selected"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: should this go on the parent?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it belongs on the role="option" element. Same in KSelectItem

class="multiselect-item-container"
role="option"
>
Expand Down
3 changes: 2 additions & 1 deletion src/components/KSelect/KSelectItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
:key="item.key"
class="select-item"
:data-testid="`select-item-${item.value}`"
@click="handleClick"
>
<div
:aria-selected="item.selected"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: should this go on the parent?

class="select-item-container"
role="option"
>
Expand All @@ -14,6 +14,7 @@
:disabled="item.disabled === true ? true : undefined"
type="button"
:value="item.value"
@click="handleClick"
adamdehaven marked this conversation as resolved.
Show resolved Hide resolved
>
<span class="select-item-label">
<slot name="content">{{ item.label }}</slot>
Expand Down
Loading