Skip to content

Commit

Permalink
fix: Fixed the problem that the radio component style is missing (#243)
Browse files Browse the repository at this point in the history
* fix: Fixed the problem that the radio component style is missing

* Update components/Radio/src/index.svelte

* Update preset/src/shortcuts/radio.ts

---------

Co-authored-by: 白雾三语 <32354856+baiwusanyu-c@users.noreply.github.com>
  • Loading branch information
pkc918 and baiwusanyu-c committed Sep 13, 2023
1 parent db669b1 commit 7e641a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/Radio/src/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
$: radioboxCls = clsx(
'k-radio--box',
{
'border-ikun-main': valueInner && !disabled,
'k-radio__selected': valueInner && !disabled,
'k-radio--box__disabled': disabled
},
classChecking
Expand Down
1 change: 1 addition & 0 deletions preset/src/shortcuts/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const radioShortcuts: Record<string, string> = {
'k-radio--box': 'rounded-50% k-border border-ikun-bd-base f-c h-4 w-4',
'k-radio--box__disabled': 'k-bg-disabled',
'k-radio--label': 'text-base',
'k-radio__selected': 'bg-ikun-main border-ikun-main',
// dark
'k-radio--base__dark': 'dark:text-ikun-white'
};

0 comments on commit 7e641a7

Please sign in to comment.