[improvement] Divider: add separator role to improve accessibility (#4069)

This commit is contained in:
neverland
2019-08-08 20:00:22 +08:00
committed by GitHub
parent 09c618d475
commit 5777762249
2 changed files with 7 additions and 6 deletions
+1
View File
@@ -22,6 +22,7 @@ function Divider(
) {
return (
<div
role="separator"
style={{ borderColor: props.borderColor }}
class={bem({
dashed: props.dashed,