Skip to content

[a11y] play button not recognized as button #71

@binyamin

Description

@binyamin

Because the play/pause button is a <div> and not a <button>, screen-readers don't recognize it as interactive. There are two options that I see: Either change the div tag to a button tag, or use the role attribute (as in role="button").
Once we're dealing with the play button, I noticed that there is no text associated with the button. Maybe we should put an aria-label, and/or an aria-checked to indicate the state
https://github.com/freeCodeCamp/coderadio-client/blob/c721fbfaeedc0b1e529c0552426a267d21a0e596/src/components/Footer.js#L89-L9

Connected to #20

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