Skip to content

Commit

Permalink
fix: improve controls border colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Mar 20, 2022
1 parent 613d6ac commit e76c1f6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ watch(path, value => {
:class="[
modelValue
? 'htw-border-primary-500 htw-border-8'
: 'htw-border-gray-300 dark:htw-border-gray-500 htw-delay-150',
: 'htw-border-black/25 dark:htw-border-white/25 htw-delay-150',
]"
/>
<svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ onUnmounted(() => {
:class="{
'htw-select-none': isDragging,
}"
class="htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-pl-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-gray-300 dark:htw-border-gray-500 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-cursor-ew-resize"
class="htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-pl-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-cursor-ew-resize"
>
</HstWrapper>
</template>
2 changes: 1 addition & 1 deletion packages/histoire-controls/src/components/text/HstText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const input = ref<HTMLInputElement>()
v-bind="{ ...$attrs, class: null, style: null }"
type="text"
:value="modelValue"
class="htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-gray-300 dark:htw-border-gray-500 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm"
class="htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm"
@input="emit('update:modelValue', ($event.target as HTMLInputElement).value)"
>
</HstWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const input = ref<HTMLInputElement>()
ref="input"
v-bind="{ ...$attrs, class: null, style: null }"
:value="modelValue"
class="htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-gray-300 dark:htw-border-gray-500 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-box-border htw-resize-y htw-min-h-[26px]"
class="htw-text-inherit htw-bg-transparent htw-w-full htw-outline-none htw-px-2 htw-py-1 -htw-my-1 htw-border htw-border-solid htw-border-black/25 dark:htw-border-white/25 focus:htw-border-primary-500 dark:focus:htw-border-primary-500 htw-rounded-sm htw-box-border htw-resize-y htw-min-h-[26px]"
@input="emit('update:modelValue', ($event.target as HTMLInputElement).value)"
/>
</HstWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ watch(path, value => {
:class="[
modelValue
? 'htw-border-primary-500 htw-border-8'
: 'htw-border-gray-300 dark:htw-border-gray-500 htw-delay-150',
: 'htw-border-black/25 dark:htw-border-white/25 htw-delay-150',
]"
/>
<svg
Expand Down

0 comments on commit e76c1f6

Please sign in to comment.