Skip to content

Commit

Permalink
Modify aria-label
Browse files Browse the repository at this point in the history
  • Loading branch information
leung018 committed May 13, 2024
1 parent 862791b commit 31dddb8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/components/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export class QuestionSetEditorAriaLabel {

static readonly ERROR_PROMPT = 'error prompt'

static removeQuestionButton(questionNumber: number) {
return `button of removing question ${questionNumber}`
}

static answerInput({
choiceNumber,
questionNumber,
Expand Down Expand Up @@ -254,7 +258,9 @@ function QuestionSetEditor({
>
<button
className="absolute top-2 right-2 bg-transparent text-2xl text-red-500 hover:text-red-700"
aria-label="Remove question"
aria-label={QuestionSetEditorAriaLabel.removeQuestionButton(
questionIndex + 1,
)}
>
×
</button>
Expand Down

0 comments on commit 31dddb8

Please sign in to comment.