improvement(components) [divider] add separator role (#7678)

This commit is contained in:
류한경 2022-05-14 15:41:18 +09:00 committed by GitHub
parent 4204137396
commit 6307bdd049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,9 @@
<template>
<div :class="[ns.b(), ns.m(direction)]" :style="dividerStyle">
<div
:class="[ns.b(), ns.m(direction)]"
:style="dividerStyle"
role="separator"
>
<div
v-if="$slots.default && direction !== 'vertical'"
:class="[ns.e('text'), ns.is(contentPosition)]"