mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 19:00:35 +01:00
chore(presets): improve checkbox and radio
This commit is contained in:
@@ -191,20 +191,17 @@ const select = {
|
|||||||
...input
|
...input
|
||||||
}
|
}
|
||||||
|
|
||||||
const checkbox = {
|
const radio = {
|
||||||
wrapper: 'relative flex items-start',
|
wrapper: 'relative flex items-start',
|
||||||
base: 'focus:ring-primary-500 h-4 w-4 text-primary-600 u-border-gray-300 rounded',
|
base: 'h-4 w-4 text-primary-600 focus:ring-1 focus:ring-primary-500 u-border-gray-300 dark:checked:border-primary-600 disabled:opacity-50 disabled:cursor-not-allowed',
|
||||||
label: 'font-medium u-text-gray-700',
|
label: 'font-medium u-text-gray-700',
|
||||||
required: 'text-red-400',
|
required: 'text-red-400',
|
||||||
help: 'u-text-gray-500'
|
help: 'u-text-gray-500'
|
||||||
}
|
}
|
||||||
|
|
||||||
const radio = {
|
const checkbox = {
|
||||||
wrapper: 'relative flex items-start',
|
...radio,
|
||||||
base: 'focus:ring-primary-500 h-4 w-4 text-primary-600 u-border-gray-300',
|
base: `${radio.base} rounded`
|
||||||
label: 'font-medium u-text-gray-700',
|
|
||||||
required: 'text-red-400',
|
|
||||||
help: 'u-text-gray-500'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const card = {
|
const card = {
|
||||||
|
|||||||
Reference in New Issue
Block a user