Skip to content

Commit

Permalink
feat(count-down): support aria (#1207)
Browse files Browse the repository at this point in the history
* feat: CountDown组件读屏焦点优化

* feat: 修改count-down的aria-role

* feat: update count-dow snapshots

Co-authored-by: beedeng <beedeng@tencent.com>
  • Loading branch information
szu-bee and beedeng authored Dec 14, 2022
1 parent 6a402f0 commit b8fa155
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/count-down/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`countdown :autoStart 1`] = `
<main>
<t-count-down>
<wx-view
ariaRole="option"
class="t-count-down t-count-down--default t-count-down--medium t-class "
style=""
>
Expand All @@ -17,6 +18,7 @@ exports[`countdown :base 1`] = `
<main>
<t-count-down>
<wx-view
ariaRole="option"
class="t-count-down t-count-down--default t-count-down--medium t-class "
style=""
>
Expand All @@ -30,6 +32,7 @@ exports[`countdown :base 2`] = `
<main>
<t-count-down>
<wx-view
ariaRole="option"
class="t-count-down t-count-down--default t-count-down--medium t-class "
style=""
>
Expand All @@ -45,6 +48,7 @@ exports[`countdown :millisecond 1`] = `
id="cd"
>
<wx-view
ariaRole="option"
class="t-count-down t-count-down--default t-count-down--medium t-class "
style=""
>
Expand Down
1 change: 1 addition & 0 deletions src/count-down/count-down.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<view
style="{{ customStyle }}"
class="{{classPrefix}} {{classPrefix}}--{{theme}} {{classPrefix}}--{{size}} {{prefix}}-class "
aria-role="option"
>
<slot wx:if="{{content !== 'default'}}" />
<block wx:elif="{{theme == 'default'}}">{{formattedTime}}</block>
Expand Down

0 comments on commit b8fa155

Please sign in to comment.