From c34a805e5fe1a6e47b26d2495fd4afa894fc028a Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Wed, 9 Oct 2024 18:24:50 +0200 Subject: [PATCH] docs: improve hard-coded rounded --- docs/app/components/Banner.vue | 2 +- docs/app/components/Header.vue | 2 +- docs/app/components/content/ComponentCode.vue | 8 ++++---- docs/app/components/content/ComponentExample.vue | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/app/components/Banner.vue b/docs/app/components/Banner.vue index 41465e3a..468c8258 100644 --- a/docs/app/components/Banner.vue +++ b/docs/app/components/Banner.vue @@ -1,5 +1,5 @@ diff --git a/docs/app/components/content/ComponentCode.vue b/docs/app/components/content/ComponentCode.vue index 01d67555..dc67848c 100644 --- a/docs/app/components/content/ComponentCode.vue +++ b/docs/app/components/content/ComponentCode.vue @@ -219,9 +219,9 @@ const { data: ast } = await useAsyncData(`component-code-${name}-${hash({ props: diff --git a/docs/app/components/content/ComponentExample.vue b/docs/app/components/content/ComponentExample.vue index 03a9bcce..7a0174f3 100644 --- a/docs/app/components/content/ComponentExample.vue +++ b/docs/app/components/content/ComponentExample.vue @@ -124,9 +124,9 @@ const optionsValues = ref(props.options?.reduce((acc, option) => { :label="option.label" :name="option.name" size="sm" - class="inline-flex ring ring-[--ui-border-accented] rounded" + class="inline-flex ring ring-[--ui-border-accented] rounded-[--ui-radius]" :ui="{ - wrapper: 'bg-[--ui-bg-elevated]/50 rounded-l flex border-r border-[--ui-border-accented]', + wrapper: 'bg-[--ui-bg-elevated]/50 rounded-l-[--ui-radius] flex border-r border-[--ui-border-accented]', label: 'text-[--ui-text-muted] px-2 py-1.5', container: 'mt-0' }" @@ -139,7 +139,7 @@ const optionsValues = ref(props.options?.reduce((acc, option) => { :value-key="option.name.toLowerCase().endsWith('color') ? 'value' : undefined" color="neutral" variant="soft" - class="rounded rounded-l-none min-w-12" + class="rounded-[--ui-radius] rounded-l-none min-w-12" :multiple="option.multiple" :class="[option.name.toLowerCase().endsWith('color') && 'pl-6']" :ui="{ itemLeadingChip: 'size-2' }" @@ -160,7 +160,7 @@ const optionsValues = ref(props.options?.reduce((acc, option) => { :model-value="get(optionsValues, option.name)" color="neutral" variant="soft" - :ui="{ base: 'rounded rounded-l-none min-w-12' }" + :ui="{ base: 'rounded-[--ui-radius] rounded-l-none min-w-12' }" @update:model-value="set(optionsValues, option.name, $event)" />