GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enhance Quiz component styling and accessibility · aidrivencoder/master-git-github@70e74c1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/components/tutorials
    • Quiz.tsx
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/components/tutorials/Quiz.tsx‎

Copy file name to clipboardExpand all lines: src/components/tutorials/Quiz.tsx
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ export function Quiz({ quiz, onComplete }: QuizProps) {
2525

2626
return (
2727
<div className="space-y-6">
28-
<h3 className="text-xl font-semibold">Quiz</h3>
28+
<h3 className="text-xl font-semibold text-gray-900 dark:text-white">Quiz</h3>
2929

3030
{quiz.questions.map((question, questionIndex) => (
3131
<div key={question.id} className="space-y-4">
32-
<p className="font-medium">{question.text}</p>
32+
<p className="font-medium text-gray-900 dark:text-white">{question.text}</p>
3333
<div className="space-y-2">
3434
{question.options.map((option, optionIndex) => (
3535
<label
3636
key={optionIndex}
37-
className="flex items-center space-x-3 p-3 rounded-lg border cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 dark:border-gray-700"
37+
className="flex items-center space-x-3 p-3 rounded-lg border border-gray-200 cursor-pointer transition-colors hover:bg-primary-50 dark:hover:bg-primary-900/10 dark:border-gray-700"
3838
>
3939
<input
4040
type="radio"
@@ -47,7 +47,7 @@ export function Quiz({ quiz, onComplete }: QuizProps) {
4747
setAnswers(newAnswers)
4848
}}
4949
disabled={submitted}
50-
className="h-4 w-4 text-primary-600 focus:ring-primary-500"
50+
className="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 dark:border-gray-600"
5151
/>
5252
<span className="text-gray-900 dark:text-gray-100">{option}</span>
5353
</label>
@@ -60,13 +60,13 @@ export function Quiz({ quiz, onComplete }: QuizProps) {
6060
<button
6161
onClick={handleSubmit}
6262
disabled={answers.includes(-1)}
63-
className="w-full px-4 py-2 text-sm font-medium text-white bg-primary-600 dark:bg-primary-500 rounded-md hover:bg-primary-700 dark:hover:bg-primary-600 disabled:opacity-50 disabled:cursor-not-allowed"
63+
className="w-full px-4 py-2 text-sm font-medium text-white bg-primary-600 rounded-md transition-colors hover:bg-primary-700 dark:bg-primary-600 dark:hover:bg-primary-700 disabled:opacity-50 disabled:cursor-not-allowed focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 dark:focus:ring-offset-gray-900"
6464
>
6565
Submit Quiz
6666
</button>
6767
) : (
68-
<div className="p-4 rounded-lg bg-gray-50 dark:bg-gray-800">
69-
<p className="font-medium">
68+
<div className="p-4 rounded-lg bg-primary-50 dark:bg-primary-900/10 border border-primary-100 dark:border-primary-900/20">
69+
<p className="font-medium text-gray-900 dark:text-white">
7070
Score: {score} / {quiz.questions.length}
7171
</p>
7272
<p className="text-sm text-gray-600 dark:text-gray-400 mt-1">
@@ -78,4 +78,4 @@ export function Quiz({ quiz, onComplete }: QuizProps) {
7878
)}
7979
</div>
8080
)
81-
}
81+
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.