Skip to content

Add VuiTooltip to more components #253

@cjcenizal

Description

@cjcenizal

We added VuiTooltip in https://github.com/vectara/vectara-ui-source/pull/141 and applied it by default to VuiIconButton. But we should also apply it to a few other components that rely on icons to communicate information:

  • Clickable VuiBadges: When VuiBadge is clickable, it should require an aria-label that explains what clicking it will do. We should also wrap it in a VuiTooltip and pass along the aria-label as a tip.
  • VuiCopyButton: VuiCopyButton needs to require a tip that will explain what it will copy. The dropdown button should have a hardcoded tip: "More copy options".
  • VuiOptionsButton: This needs a hardcoded tooltip on the dropdown button: "More options".

This is primarily an accessibility enhancement for screen-readers.

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