mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +08:00
[add] support for 'list' and 'listitem' accessibilityRole mapping
Fix #49
This commit is contained in:
@@ -11,6 +11,8 @@ const roleComponents = {
|
||||
form: 'form',
|
||||
heading: 'h1',
|
||||
link: 'a',
|
||||
list: 'ul',
|
||||
listitem: 'li',
|
||||
main: 'main',
|
||||
navigation: 'nav',
|
||||
region: 'section'
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { pickProps } from '../filterObjectProps'
|
||||
import isObject from './isObject'
|
||||
import StylePropTypes from '../StylePropTypes'
|
||||
|
||||
const isStyleObject = (obj) => {
|
||||
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%}
|
||||
body {margin: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
|
||||
|
||||
Reference in New Issue
Block a user