Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

Rewrite Highlight Words to a project briefing #219

@SallyMcGrath

Description

@SallyMcGrath

Project Brief: Highlight Words

As a user, I want to be able to highlight individual words in a paragraph with a specific colour by clicking on them.

User Stories:

As a user, I want to see a block of text displayed on the page.
As a user, I want to see a dropdown menu containing different color options.
As a user, I want to select a color from the dropdown menu.
As a user, I want to click on a word in the paragraph to highlight it with the selected color.
As a user, I want the highlighted word to change color if I select a different color from the dropdown.
As a user, I want to be able to remove the highlight from a word if I click on it again or select the "none" option in the dropdown.

Acceptance Criteria:

  • The paragraph of text is rendered using JavaScript.
  • The dropdown menu is displayed on the page.
  • The dropdown menu contains different colour options.
  • When a word is clicked, its background colour changes to the colour selected in the dropdown.
  • If the "none" option is selected in the dropdown, the background colour of the clicked word is removed.
  • The Lighthouse Accessibility score is 100.
  • The UI is simple and easy to use.

Metadata

Metadata

Assignees

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