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(VAutocomplete): fix accessibility of chips #7

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

tmasrat
Copy link
Owner

@tmasrat tmasrat commented Dec 11, 2023

Description

  1. to make v-autocomplete and v-select with multiple closable chips keyboard accessible

  2. to make v-select with single chip keyboard accessible

    • The above changes still apply here but when calling select, I am passing 'closing' as a string so I can clear the modal.value which will clear the value. This functionality doesn't work in v-autocomplete. Here is a reproduction link

fixes vuetifyjs#18493

Markup:

<template>
  <v-app>
    <v-container>
      <v-autocomplete
          label="Autocomplete"
          :items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
          chips
          closable-chips
      ></v-autocomplete>
      <v-autocomplete
          label="Autocomplete Multiple"
          :items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
          chips
          closable-chips
          multiple
      ></v-autocomplete>
      <v-select
          label="Select"
          :items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
          chips
          closable-chips
      ></v-select>
      <v-select
          label="Select Multiple"
          :items="['California', 'Colorado', 'Florida', 'Georgia', 'Texas', 'Wyoming']"
          chips
          closable-chips
          multiple
      ></v-select>
    </v-container>
  </v-app>
</template>
<script setup lang="ts">
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report][3.3.21] Accessibility: v-autocomplete with multiple closable chips not keyboard accessible
9 participants