[improvement] NoticeBar: improve accessibility

This commit is contained in:
陈嘉涵
2019-05-25 12:02:33 +08:00
parent ae0aaab3ba
commit cea1632927
5 changed files with 18 additions and 16 deletions
+2 -1
View File
@@ -117,6 +117,7 @@ export default sfc({
return (
<div
role="alert"
vShow={this.showNoticeBar}
class={bem({ wrapable: this.wrapable })}
style={barStyle}
@@ -125,7 +126,7 @@ export default sfc({
}}
>
{LeftIcon()}
<div ref="wrap" class={bem('wrap')}>
<div ref="wrap" class={bem('wrap')} role="marquee">
<div
ref="content"
class={[