8000 b-form-datepicker calendar button does not meet WCAG · Issue #7217 · bootstrap-vue/bootstrap-vue · GitHub
[go: up one dir, main page]

Skip to content
b-form-datepicker calendar button does not meet WCAG #7217
Open
@jhaagen

Description

@jhaagen

Describe the bug

The calendar SVG in the <b-form-datepicker> is wrapped by a button element, this button element needs to have a ARIA attribute. This currently fails accessibility requirements from multiple sources (Lighthouse, SiteImprove, etc.)

Steps to reproduce the bug

  1. View page with <b-form-datepicker> element in Chrome
  2. Run Lighthouse against that page
  3. View accessibility results
  4. See the error Buttons do not have an accessible name

Expected behavior

The button needs to have an ARIA label attached to it instead of just the SVG inside of the button to be compliant

Versions

Libraries:

  • BootstrapVue: 2.5.0
  • Bootstrap: 4.#.#
  • Vue: 2.#.#

Environment:

  • Device: Any
  • OS: Any
  • Browser: Chrome
  • Version: Any

Demo link

This is visible on the documentation page for this element on the Bootstrap Vue site: https://bootstrap-vue.org/docs/components/form-datepicker

Additional context

Add any other context about the bug here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    < 33AD h3 class="Box-sc-g0xbh4-0 jVkRst prc-Heading-Heading-6CmGO">Type
    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0