Skip to content

ARIA input fields must have an accessible name #1449

@colabottles

Description

@colabottles
<div
        v-if="isOpen"
        ref="listboxRef"
        role="listbox"
        tabindex="0"
        :aria-activedescendant="
          focusedIndex >= 0 ? `version-${flatItems[focusedIndex]?.version?.version}` : undefined
        "
        class="absolute top-full inset-is-0 mt-2 min-w-[220px] bg-bg-subtle/80 backdrop-blur-sm border border-border-subtle rounded-lg shadow-lg shadow-fg-subtle/10 z-50 py-1 max-h-[400px] overflow-y-auto overscroll-contain focus-visible:outline-none"
        @keydown="handleListboxKeydown"
      >

This is a good first issue for someone all this needs is either an aria-label such as aria-label="Choose a package manager" and doing this will satisfy WCAG Success Criteria WCAG 2.2 (A) 4.1.2: Name, Role, Value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions