fix(picker-column-option): changed structure in order to remove tabindex="-1"

This is needed in order to prevent A11Y issues, in order to prevent to be possible to navigate through each option item through tab navigation, structure must change into this.
This commit is contained in:
José Rio
2025-07-17 11:19:47 +01:00
parent c1574ffe1f
commit 3626302d32
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
// Picker Column
// --------------------------------------------------
button {
.picker-column-option-button {
@include padding(0);
@include margin(0);
@@ -40,6 +40,6 @@ button {
opacity: 0.4;
}
:host(.option-disabled) button {
:host(.option-disabled) .picker-column-option-button {
cursor: default;
}

View File

@@ -129,9 +129,9 @@ export class PickerColumnOption implements ComponentInterface {
['option-disabled']: disabled,
})}
>
<button tabindex="-1" aria-label={ariaLabel} disabled={disabled} onClick={() => this.onClick()}>
<div class={"picker-column-option-button"} role="button" aria-label={ariaLabel} onClick={() => this.onClick()}>
<slot></slot>
</button>
</div>
</Host>
);
}