Skip to content

Commit 502d1f7

Browse files
fix: ariaHidden documentation source (#871)
1 parent 01b0de6 commit 502d1f7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/components.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
88
export namespace Components {
99
interface IonIcon {
10+
/**
11+
* Set the icon to hidden, respectively `true`, to remove it from the accessibility tree.
12+
*/
1013
"ariaHidden"?: string;
1114
/**
1215
* Specifies the label to use for accessibility. Defaults to the icon name.
@@ -67,6 +70,9 @@ declare global {
6770
}
6871
declare namespace LocalJSX {
6972
interface IonIcon {
73+
/**
74+
* Set the icon to hidden, respectively `true`, to remove it from the accessibility tree.
75+
*/
7076
"ariaHidden"?: string;
7177
/**
7278
* Specifies the label to use for accessibility. Defaults to the icon name.

src/components/icon/icon.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ export class Icon {
3232
*/
3333
@Prop({ mutable: true, reflectToAttr: true }) ariaLabel?: string;
3434

35+
/**
36+
* Set the icon to hidden, respectively `true`, to remove it from the accessibility tree.
37+
*/
3538
@Prop({reflect: true}) ariaHidden?: string;
3639

3740
/**

0 commit comments

Comments
 (0)