Skip to content

Commit

Permalink
1,599th Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Dec 12, 2024
1 parent 71035e3 commit 480fc86
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
10 changes: 5 additions & 5 deletions ui/src/components/checkbox/Checkbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ const id = useId();
}
.Checkbox-Input {
@apply appearance-none w-5 h-5 rounded border border-slate-400 dark:border-slate-600 overflow-hidden;
@apply focus:outline-none focus:ring-2 focus:ring-primary-500/50 focus:shadow-lg;
@apply bg-white;
@apply appearance-none size-5 rounded border overflow-hidden;
@apply bg-white dark:bg-slate-800 border-slate-500 dark:border-slate-400;
@apply focus:outline-none focus:ring-2 focus:ring-primary-500/40 focus:border-primary-400;
&.hasValue {
@apply bg-primary-500;
@apply bg-primary-500 dark:bg-primary-500;
}
&.invalid {
@apply border-red-500 dark:border-red-500;
@apply focus:ring-red-500/50 focus:border-red-500;
@apply focus:ring-red-500/40 focus:border-red-500;
}
}
Expand Down
15 changes: 8 additions & 7 deletions ui/src/components/radio-group/RadioGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const emit = defineEmits<{
</script>

<template>
<FormControl v-slot="{ id }" :label :required :invalid :help>
<FormControl v-slot="{ id }" :label :required :invalid :help class="RadioGroup">
<div class="flex flex-wrap items-center gap-4 min-h-9.5">
<label
v-for="(item, index) in options"
Expand All @@ -41,8 +41,8 @@ const emit = defineEmits<{
type="radio"
:name="id"
:value="typeof item === 'object' ? item.value : item"
:disabled="disabled"
class="radio"
:disabled
class="RadioGroup-Input"
:class="{ invalid }"
@change="emit('change', valueModel)"
/>
Expand All @@ -64,13 +64,14 @@ const emit = defineEmits<{
</template>

<style lang="scss" scoped>
.radio {
@apply appearance-none w-5 h-5 rounded-full bg-white border border-slate-400 dark:border-slate-600;
@apply focus:outline-none focus:ring-2 focus:ring-primary-400 focus:shadow-lg;
.RadioGroup-Input {
@apply appearance-none size-5 rounded-full border overflow-hidden;
@apply bg-white dark:bg-slate-800 border-slate-500 dark:border-slate-400;
@apply focus:outline-none focus:ring-2 focus:ring-primary-500/40 focus:border-primary-400;
&.invalid {
@apply border-red-500 dark:border-red-500;
@apply focus:ring-red-500 focus:border-red-500;
@apply focus:ring-red-500/40 focus:border-red-500;
}
}
</style>

0 comments on commit 480fc86

Please sign in to comment.