Skip to content

Commit e841efb

Browse files
committed
fix(a11y): announce day of week no empty attributes
1 parent 91a3830 commit e841efb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/datepicker/day.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@
8787
>
8888
<button
8989
class="btn btn-default btn-sm"
90-
ng-attr-aria-atomic="{{isActive(dt) ? 'true' : ''}}"
91-
ng-attr-aria-label="{{isActive(dt) ? dt.long : ''}}"
92-
ng-attr-aria-live="{{isActive(dt) ? 'assertive' : ''}}"
90+
ng-attr-aria-atomic="{{isActive(dt) && 'true' || undefined }}"
91+
ng-attr-aria-label="{{isActive(dt) && dt.long || undefined}}"
92+
ng-attr-aria-live="{{isActive(dt) && 'assertive' || undefined}}"
9393
ng-click="select(dt.date)"
9494
ng-disabled="::dt.disabled"
9595
tabindex="-1"

0 commit comments

Comments
 (0)