Skip to content

Commit

Permalink
fix: checkbox dark bg
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskang committed Apr 16, 2024
1 parent cc68b58 commit 486750c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Checkbox/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ const clickHandler = () => {
@click="clickHandler"
>
<button
class="focus-visible:ring-primary-500 relative block cursor-[inherit] appearance-none rounded transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2"
class="relative block cursor-[inherit] appearance-none rounded bg-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2"
>
<span
class="block h-4 w-4 rounded border border-solid transition-all"
:class="[checked ? 'bg-primary-500 border-primary-500' : 'border-slate-300 bg-transparent']"
:class="[checked ? 'border-primary-500 bg-primary-500' : 'border-slate-300 bg-transparent']"
>
<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg">
<path
Expand Down
4 changes: 2 additions & 2 deletions src/Radio/Radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ const clickHandler = () => {
@click="clickHandler"
>
<button
class="focus-visible:ring-primary-500 relative block cursor-[inherit] appearance-none rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2"
class="relative block cursor-[inherit] appearance-none rounded-full bg-white transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2"
>
<span
class="block h-4 w-4 rounded-full border border-solid transition-all"
:class="[checked ? 'bg-primary-500 border-primary-500' : 'border-slate-300 bg-transparent']"
:class="[checked ? 'border-primary-500 bg-primary-500' : 'border-slate-300 bg-transparent']"
>
<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg">
<circle cx="8" cy="8" r="3" />
Expand Down

0 comments on commit 486750c

Please sign in to comment.