Use inline-style-prefix-all for vendor prefixes

Fix #74
Close #82
This commit is contained in:
rofrischmann
2016-03-06 02:45:17 +01:00
committed by Nicolas Gallagher
parent 7ab33727c4
commit e627e0cd77
4 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
},
"dependencies": {
"fbjs": "^0.7.2",
"inline-style-prefixer": "^0.6.7",
"inline-style-prefix-all": "^1.0.2",
"lodash.debounce": "^3.1.1",
"react-tappable": "^0.7.1",
"react-textarea-autosize": "^3.1.0"
+2 -2
View File
@@ -1,5 +1,5 @@
import prefixAll from 'inline-style-prefix-all'
import hyphenate from './hyphenate'
import prefixer from './prefixer'
export default class Store {
constructor(
@@ -46,7 +46,7 @@ export default class Store {
// transform the declarations into CSS rules with vendor-prefixes
const buildCSSRules = (property, values) => {
return values.reduce((cssRules, value) => {
const declarations = prefixer({ [property]: value })
const declarations = prefixAll({ [property]: value })
const cssDeclarations = Object.keys(declarations).reduce((str, prop) => {
const value = declarations[prop]
str += `${hyphenate(prop)}:${value};`
+2 -2
View File
@@ -6,8 +6,8 @@
* @flow
*/
import prefixAll from 'inline-style-prefix-all'
import flattenStyle from './flattenStyle'
import prefixer from './prefixer'
export default class StyleSheetRegistry {
static registerStyle(style: Object, store): number {
@@ -39,7 +39,7 @@ export default class StyleSheetRegistry {
}
_className = classList.join(' ')
_style = prefixer(_style)
_style = prefixAll(_style)
return { className: _className, style: _style }
}
-3
View File
@@ -1,3 +0,0 @@
import Prefixer from 'inline-style-prefixer'
const prefixer = Prefixer.prefixAll
export default prefixer