fix: missing theme on final welcome, improve hover on radio

This commit is contained in:
David Ralph
2024-11-18 00:54:25 +00:00
parent c1b8b06f1a
commit f456168428
2 changed files with 4 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ function Radio(props) {
key={option.name}
label={option.name}
value={option.value}
className="data-[checked]:bg-white/10 group relative flex cursor-pointer rounded-lg bg-white/5 data-[checked]:hover:bg-neutral-700 hover:bg-neutral-700 py-4 px-5 dark:text-white text-black shadow-md transition focus:outline-none data-[focus]:outline-1 data-[focus]:outline-white"
className="data-[checked]:bg-white/10 group relative flex cursor-pointer rounded-lg bg-white/5 dark:data-[checked]:hover:bg-neutral-700 dark:hover:bg-neutral-700 dark:data-[checked]:hover:bg-neutral-700 hover:bg-neutral-200 py-4 px-5 dark:text-white text-black shadow-md transition focus:outline-none data-[focus]:outline-1 data-[focus]:outline-white"
>
<div className="flex w-full items-center justify-between">
<div className="text-sm/6">

View File

@@ -4,6 +4,8 @@ import defaults from 'config/default';
function Final(props) {
const language = localStorage.getItem('language') || defaults.language;
const theme = localStorage.getItem('theme') || defaults.theme;
return (
<Content>
<Header
@@ -25,7 +27,7 @@ function Final(props) {
<span>
{variables.getMessage('settings:sections.appearance.theme.title')}:{' '}
{variables.getMessage(
'settings:sections.appearance.theme.' + localStorage.getItem('theme'),
'settings:sections.appearance.theme.' + theme,
)}
</span>
</div>