Skip to content

Commit 24d7b46

Browse files
authored
Merge pull request #318 from ant-mini-program/fix/icon
feat(am-icon): aria-hidden 属性透传
2 parents 0912c58 + fd94733 commit 24d7b46

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

components/am-icon/index.axml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<text
22
class="am-icon {{className}} am-icon-{{type}}"
3-
style="font-size: {{size}}px; color:{{color}};">
3+
style="font-size: {{size}}px; color:{{color}};"
4+
aria-hidden="{{ariaHidden}}">
45
</text>

components/am-icon/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ Component({
44
size: 23,
55
color: '#333',
66
className: '',
7+
ariaHidden: undefined,
78
},
89
});

0 commit comments

Comments
 (0)