Skip to content

Allow link elements in lieu of click handlers #31

Description

@harrislapiroff

Is your feature request related to a problem? Please describe.

We're run into some challenges using react-animated-dataset to build accessible visualizations—in particular using <a> link elements for handling click behavior instead of click handlers will get us a slough of native browser accessibility affordances.

Describe the solution you'd like

I'm not entirely sure the best solution here. I could imagine this going two ways:

  1. provide a href/link prop on AnimatedDataset that will accept a URL and conditionally render a link tag around an element
  2. more generically, provide functionality for rendering more complex component trees than a single tag per datum (this could get quite complicated, though, I imagine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions