Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/ui/src/components/va-divider/VaDivider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
class="va-divider"
:class="classComputed"
:aria-orientation="vertical ? 'vertical' : 'horizontal'"
:style="`color: ${color}; --va-divider-border-top-color: ${color}`"
>
<div
v-if="hasSlot && !vertical"
Expand Down Expand Up @@ -32,6 +33,7 @@ export default defineComponent({
default: 'center',
validator: (value: string) => ['left', 'right', 'center'].includes(value),
},
color: { type: String, default: '' }
},
setup: (props, { slots }) => ({
hasSlot: computed(() => !!slots.default),
Expand Down Expand Up @@ -81,7 +83,7 @@ export default defineComponent({
flex: 1;
border-top-width: var(--va-divider-line-width);
border-top-style: var(--va-divider-border-top-style);
border-top-color: var(--va-divider-border-top-color);
border-top-color: var(--va-divider-border-top-color)
}

&--dashed {
Expand Down