Skip to content

Commit

Permalink
gray the spoiler text a tad for dark themes
Browse files Browse the repository at this point in the history
  • Loading branch information
k2xl committed May 20, 2024
1 parent 58a19ac commit 92d9e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/level/reviews/spoilerText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ export function SpoilerText({ id, text }: SpoilerTextProps) {
spoilerToolTipText = 'You must solve this level to view this spoiler';
}

const backgroundColor = visible ? undefined : '#000';
const backgroundColor = visible ? '' : 'bg-black text-black dark:bg-gray-600 dark:text-gray-600';

return (
<>
<span
className='select-none'
className={'select-none ' + backgroundColor}
data-tooltip-id={tooltipId}
data-tooltip-content={spoilerToolTipText}
style={{
Expand Down

0 comments on commit 92d9e05

Please sign in to comment.