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

Help Making ADA Compatible #1799

Open
ikkysleepy opened this issue Sep 15, 2024 · 0 comments
Open

Help Making ADA Compatible #1799

ikkysleepy opened this issue Sep 15, 2024 · 0 comments

Comments

@ikkysleepy
Copy link

Reproduction Link

Steps to reproduce

<template>

<div class='col-12'>
    <label>Category</label>
   <multiselect
        v-model='form.category_id'
        :options='options'
    >
       <template #singleLabel='props'>
       <div class='mt-1'>
           <font-awesome-icon icon='tag' :color='props.option.color' />
           <span class='mx-2'>
                          <span class='option__title'>{{ props.option.name }}</span>
                        </span>
       </div>
   </template>
       <template #option='props'>
           <div class='mt-1'>
               <font-awesome-icon icon='tag' :color='props.option.color' />
               <span class='mx-2'>
                          <span class='option__title'>{{ props.option.name }}</span>
                        </span>
           </div>
       </template>
       
   </multiselect>
</div>
</template>

<script setup>
    import Multiselect from 'vue-multiselect';
    import { ref } from 'vue';
    import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
    
    const form = ref({
        category_id: {
            'name': 'Restricted',
            'id': 1,
            'value': 1,
            'color': '#FF0000',
            'is_default': false
        }
    });

    const options = [{
        'name': 'Restricted',
        'id': 1,
        'value': 1,
        'color': '#FF0000',
        'is_default': false
    }, { 'name': 'Confidential', 'id': 2, 'value': 2, 'color': '#FFA500', 'is_default': false }, {
        'name': 'Internal',
        'id': 3,
        'value': 3,
        'color': '#FFFF00',
        'is_default': true
    }, { 'name': 'Public', 'id': 4, 'value': 4, 'color': '#00FF00', 'is_default': false }];
</script>

Expected behaviour

Make ADA Compatible.

Actual behaviour

When using the WAVE Evaluation Tool Extension to test ADA compatibility I get this error:

ARIA tabindexARIAMissing form label
<input name="" type="text" autocomplete="off" spellcheck="false" placeholder="Select option" tabindex="0" class="multiselect__input" aria-controls="listbox-null" value="" style="width: 0px; position: absolute; padding: 0px;" aria-activedescendant="null-1">
<span class="multiselect__single"
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

No branches or pull requests

1 participant