Skip to content

Commit 52d3aa9

Browse files
committed
fix: 优化Checkbox组件hover样式,Input组件placeholder样式,TabsList组件圆角样式
1 parent 4e264c5 commit 52d3aa9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/@core/ui-kit/shadcn-ui/src/ui/checkbox/Checkbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits);
3131
v-bind="forwarded"
3232
:class="
3333
cn(
34-
'focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground border-border peer h-4 w-4 shrink-0 rounded-sm border transition focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',
34+
'focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground border-border hover:border-primary peer h-4 w-4 shrink-0 rounded-sm border transition focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',
3535
props.class,
3636
)
3737
"

packages/@core/ui-kit/shadcn-ui/src/ui/input/Input.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const modelValue = useVModel(props, 'modelValue', emits, {
2424
v-model="modelValue"
2525
:class="
2626
cn(
27-
'border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',
27+
'border-input bg-background ring-offset-background placeholder:text-muted-foreground/50 focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50',
2828
props.class,
2929
)
3030
"

packages/@core/ui-kit/shadcn-ui/src/ui/tabs/TabsList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const delegatedProps = computed(() => {
2121
v-bind="delegatedProps"
2222
:class="
2323
cn(
24-
'bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1',
24+
'bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-md p-1',
2525
props.class,
2626
)
2727
"

0 commit comments

Comments
 (0)