How do change the background on a radio button when the state is selected.
### Describe the bug
The checked: state isn't working for the RadioButton's style.
### Reproduction
` <RadioButton checked={true} color="light" bind:group={recordType} value={LPOption.single} class="w-[156px] h-[140px] checked:bg-blue-500">
<div class="flex-row h-full peer-checked:bg-red-500">
<img src={SingleRecord} alt="Singe Record" class="h-24" />
<p>Single Album</p>
</div>
</RadioButton>`
### Version and System Info
```shell
System:
OS: macOS 15.3
CPU: (8) arm64 Apple M1
Memory: 71.03 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.0.0 - /opt/homebrew/bin/node
Yarn: 1.22.17 - /opt/homebrew/bin/yarn
npm: 10.5.1 - /opt/homebrew/bin/npm
pnpm: 9.15.5 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 133.0.6943.98
Safari: 18.3
```
0 条评论