mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-03 10:46:19 +00:00
[add] support for 'list' and 'listitem' accessibilityRole mapping
Fix #49
This commit is contained in:
@@ -11,6 +11,8 @@ const roleComponents = {
|
|||||||
form: 'form',
|
form: 'form',
|
||||||
heading: 'h1',
|
heading: 'h1',
|
||||||
link: 'a',
|
link: 'a',
|
||||||
|
list: 'ul',
|
||||||
|
listitem: 'li',
|
||||||
main: 'main',
|
main: 'main',
|
||||||
navigation: 'nav',
|
navigation: 'nav',
|
||||||
region: 'section'
|
region: 'section'
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import { pickProps } from '../filterObjectProps'
|
|
||||||
import isObject from './isObject'
|
import isObject from './isObject'
|
||||||
import StylePropTypes from '../StylePropTypes'
|
|
||||||
|
|
||||||
const isStyleObject = (obj) => {
|
const isStyleObject = (obj) => {
|
||||||
const values = Object.keys(obj).map((key) => obj[key])
|
const values = Object.keys(obj).map((key) => obj[key])
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ export const resetCSS =
|
|||||||
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
html {font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
|
||||||
body {margin:0}
|
body {margin:0}
|
||||||
button::-moz-focus-inner, input::-moz-focus-inner {border:0;padding:0}
|
button::-moz-focus-inner, input::-moz-focus-inner {border:0;padding:0}
|
||||||
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}`
|
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {-webkit-appearance:none}
|
||||||
|
ol,ul,li {list-style:none}`
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom pointer event styles
|
* Custom pointer event styles
|
||||||
|
|||||||
Reference in New Issue
Block a user