Skip to content

Commit

Permalink
Merge pull request #182 from OneBusAway/dark-mode-issue
Browse files Browse the repository at this point in the history
Add dark mode support (Surveys)
  • Loading branch information
aaronbrethorst authored Feb 19, 2025
2 parents 0a0b88d + 66f599d commit 7ee5ced
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/surveys/HeroQuestion.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
let { currentStopSurvey, handleSkip, handleNext, handleHeroQuestionChange } = $props();
</script>

<div class="hero-question-container relative rounded-lg bg-gray-50 p-6 shadow">
<div class="hero-question-container relative rounded-lg bg-gray-50 p-6 shadow dark:bg-gray-800">
<button
onclick={handleSkip}
class="absolute right-2 top-2 text-2xl text-gray-500 hover:text-gray-700"
class="absolute right-2 top-2 text-2xl text-gray-500 hover:text-gray-700 dark:text-gray-300 dark:hover:text-gray-100"
title="Skip hero question"
>
&times;
</button>
<h2 class="h2 mb-4">{currentStopSurvey.name}</h2>
<h2 class="h2 mb-4 text-gray-800 dark:text-gray-100">{currentStopSurvey.name}</h2>
<SurveyQuestion
question={currentStopSurvey.questions[0]}
index={0}
Expand All @@ -23,7 +23,7 @@
<div class="mt-4 flex justify-end">
<button
onclick={handleNext}
class="rounded bg-green-500 px-4 py-3 text-white shadow transition hover:bg-green-600"
class="rounded bg-green-500 px-4 py-3 text-white shadow transition hover:bg-green-600 dark:bg-green-600 dark:hover:bg-green-700"
>
Next
</button>
Expand Down

0 comments on commit 7ee5ced

Please sign in to comment.