Skip to content

Commit 076e46a

Browse files
docs: clarify correct usage of accessibilityRole link (fixes #3215)
1 parent 1ec3a68 commit 076e46a

12 files changed

Lines changed: 24 additions & 24 deletions

File tree

‎docs/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ In the above example method `addOne` changes the state variable `count`. When th
146146
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
147147
- **imagebutton** Used when the element should be treated as a button and is also an image.
148148
- **keyboardkey** Used when the element acts as a keyboard key.
149-
- **link** Used when the element should be treated as a link.
149+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use `button` instead.
150150
- **menu** Used when the component is a menu of choices.
151151
- **menubar** Used when a component is a container of multiple menus.
152152
- **menuitem** Used to represent an item within a menu.
@@ -478,7 +478,7 @@ Assign this property to a custom function which will be called when someone perf
478478
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
479479
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
480480
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
481-
- **link** Used when the element should be treated as a link.
481+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use `button` instead.
482482
- **list** Used to identify a list of items.
483483
- **listitem** Used to itentify an item in a list.
484484
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.77/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ In the above example method `addOne` changes the state variable `count`. When th
142142
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
143143
- **imagebutton** Used when the element should be treated as a button and is also an image.
144144
- **keyboardkey** Used when the element acts as a keyboard key.
145-
- **link** Used when the element should be treated as a link.
145+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
146146
- **menu** Used when the component is a menu of choices.
147147
- **menubar** Used when a component is a container of multiple menus.
148148
- **menuitem** Used to represent an item within a menu.
@@ -381,7 +381,7 @@ Assign this property to a custom function which will be called when someone perf
381381
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
382382
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
383383
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
384-
- **link** Used when the element should be treated as a link.
384+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
385385
- **list** Used to identify a list of items.
386386
- **listitem** Used to itentify an item in a list.
387387
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.78/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ In the above example method `addOne` changes the state variable `count`. When th
144144
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
145145
- **imagebutton** Used when the element should be treated as a button and is also an image.
146146
- **keyboardkey** Used when the element acts as a keyboard key.
147-
- **link** Used when the element should be treated as a link.
147+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
148148
- **menu** Used when the component is a menu of choices.
149149
- **menubar** Used when a component is a container of multiple menus.
150150
- **menuitem** Used to represent an item within a menu.
@@ -383,7 +383,7 @@ Assign this property to a custom function which will be called when someone perf
383383
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
384384
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
385385
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
386-
- **link** Used when the element should be treated as a link.
386+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
387387
- **list** Used to identify a list of items.
388388
- **listitem** Used to itentify an item in a list.
389389
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.79/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ In the above example method `addOne` changes the state variable `count`. When th
144144
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
145145
- **imagebutton** Used when the element should be treated as a button and is also an image.
146146
- **keyboardkey** Used when the element acts as a keyboard key.
147-
- **link** Used when the element should be treated as a link.
147+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
148148
- **menu** Used when the component is a menu of choices.
149149
- **menubar** Used when a component is a container of multiple menus.
150150
- **menuitem** Used to represent an item within a menu.
@@ -383,7 +383,7 @@ Assign this property to a custom function which will be called when someone perf
383383
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
384384
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
385385
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
386-
- **link** Used when the element should be treated as a link.
386+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
387387
- **list** Used to identify a list of items.
388388
- **listitem** Used to itentify an item in a list.
389389
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.80/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ In the above example method `addOne` changes the state variable `count`. When th
144144
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
145145
- **imagebutton** Used when the element should be treated as a button and is also an image.
146146
- **keyboardkey** Used when the element acts as a keyboard key.
147-
- **link** Used when the element should be treated as a link.
147+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
148148
- **menu** Used when the component is a menu of choices.
149149
- **menubar** Used when a component is a container of multiple menus.
150150
- **menuitem** Used to represent an item within a menu.
@@ -383,7 +383,7 @@ Assign this property to a custom function which will be called when someone perf
383383
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
384384
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
385385
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
386-
- **link** Used when the element should be treated as a link.
386+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
387387
- **list** Used to identify a list of items.
388388
- **listitem** Used to itentify an item in a list.
389389
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.81/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ In the above example method `addOne` changes the state variable `count`. When th
144144
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
145145
- **imagebutton** Used when the element should be treated as a button and is also an image.
146146
- **keyboardkey** Used when the element acts as a keyboard key.
147-
- **link** Used when the element should be treated as a link.
147+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
148148
- **menu** Used when the component is a menu of choices.
149149
- **menubar** Used when a component is a container of multiple menus.
150150
- **menuitem** Used to represent an item within a menu.
@@ -383,7 +383,7 @@ Assign this property to a custom function which will be called when someone perf
383383
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
384384
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
385385
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
386-
- **link** Used when the element should be treated as a link.
386+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
387387
- **list** Used to identify a list of items.
388388
- **listitem** Used to itentify an item in a list.
389389
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.82/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ In the above example method `addOne` changes the state variable `count`. When th
146146
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
147147
- **imagebutton** Used when the element should be treated as a button and is also an image.
148148
- **keyboardkey** Used when the element acts as a keyboard key.
149-
- **link** Used when the element should be treated as a link.
149+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
150150
- **menu** Used when the component is a menu of choices.
151151
- **menubar** Used when a component is a container of multiple menus.
152152
- **menuitem** Used to represent an item within a menu.
@@ -478,7 +478,7 @@ Assign this property to a custom function which will be called when someone perf
478478
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
479479
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
480480
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
481-
- **link** Used when the element should be treated as a link.
481+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
482482
- **list** Used to identify a list of items.
483483
- **listitem** Used to itentify an item in a list.
484484
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.83/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ In the above example method `addOne` changes the state variable `count`. When th
146146
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
147147
- **imagebutton** Used when the element should be treated as a button and is also an image.
148148
- **keyboardkey** Used when the element acts as a keyboard key.
149-
- **link** Used when the element should be treated as a link.
149+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
150150
- **menu** Used when the component is a menu of choices.
151151
- **menubar** Used when a component is a container of multiple menus.
152152
- **menuitem** Used to represent an item within a menu.
@@ -478,7 +478,7 @@ Assign this property to a custom function which will be called when someone perf
478478
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
479479
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
480480
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
481-
- **link** Used when the element should be treated as a link.
481+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
482482
- **list** Used to identify a list of items.
483483
- **listitem** Used to itentify an item in a list.
484484
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.84/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ In the above example method `addOne` changes the state variable `count`. When th
146146
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
147147
- **imagebutton** Used when the element should be treated as a button and is also an image.
148148
- **keyboardkey** Used when the element acts as a keyboard key.
149-
- **link** Used when the element should be treated as a link.
149+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
150150
- **menu** Used when the component is a menu of choices.
151151
- **menubar** Used when a component is a container of multiple menus.
152152
- **menuitem** Used to represent an item within a menu.
@@ -478,7 +478,7 @@ Assign this property to a custom function which will be called when someone perf
478478
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
479479
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
480480
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
481-
- **link** Used when the element should be treated as a link.
481+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
482482
- **list** Used to identify a list of items.
483483
- **listitem** Used to itentify an item in a list.
484484
- **menu** Used when the component is a menu of choices.

‎website/versioned_docs/version-0.85/accessibility.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ In the above example method `addOne` changes the state variable `count`. When th
146146
- **image** Used when the element should be treated as an image. Can be combined with a button or link.
147147
- **imagebutton** Used when the element should be treated as a button and is also an image.
148148
- **keyboardkey** Used when the element acts as a keyboard key.
149-
- **link** Used when the element should be treated as a link.
149+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
150150
- **menu** Used when the component is a menu of choices.
151151
- **menubar** Used when a component is a container of multiple menus.
152152
- **menuitem** Used to represent an item within a menu.
@@ -478,7 +478,7 @@ Assign this property to a custom function which will be called when someone perf
478478
- **grid** Used with ScrollView, VirtualizedList, FlatList, or SectionList to represent a grid. Adds the in/out of grid announcements to the android GridView.
479479
- **heading** Used when an element acts as a header for a content section (e.g. the title of a navigation bar).
480480
- **img** Used when the element should be treated as an image. Can be combined with a button or link, for example.
481-
- **link** Used when the element should be treated as a link.
481+
- **link** Used when the element should be treated as a link, specifically for interactive elements that open an external URL or web page in a browser. For in-app screen navigation or actions, use utton instead.
482482
- **list** Used to identify a list of items.
483483
- **listitem** Used to itentify an item in a list.
484484
- **menu** Used when the component is a menu of choices.

0 commit comments

Comments
 (0)