mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-03 18:52:07 +00:00
[add] More role to component mappings
This commit is contained in:
+8
-1
@@ -12,15 +12,22 @@ import propsToAriaRole from './propsToAriaRole';
|
|||||||
const roleComponents = {
|
const roleComponents = {
|
||||||
article: 'article',
|
article: 'article',
|
||||||
banner: 'header',
|
banner: 'header',
|
||||||
|
blockquote: 'blockquote',
|
||||||
|
code: 'code',
|
||||||
complementary: 'aside',
|
complementary: 'aside',
|
||||||
contentinfo: 'footer',
|
contentinfo: 'footer',
|
||||||
|
deletion: 'del',
|
||||||
|
emphasis: 'em',
|
||||||
|
figure: 'figure',
|
||||||
|
insertion: 'ins',
|
||||||
form: 'form',
|
form: 'form',
|
||||||
link: 'a',
|
link: 'a',
|
||||||
list: 'ul',
|
list: 'ul',
|
||||||
listitem: 'li',
|
listitem: 'li',
|
||||||
main: 'main',
|
main: 'main',
|
||||||
navigation: 'nav',
|
navigation: 'nav',
|
||||||
region: 'section'
|
region: 'section',
|
||||||
|
strong: 'strong'
|
||||||
};
|
};
|
||||||
|
|
||||||
const emptyObject = {};
|
const emptyObject = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user