Skip to content

Commit

Permalink
fix for placeholder css
Browse files Browse the repository at this point in the history
  • Loading branch information
threepointone committed Dec 27, 2016
1 parent ef35904 commit fa0f440
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,13 @@ function build(dest, { selector = '', mq = '', supp = '', src = {} }) {
}
Object.keys(_src || {}).forEach(key => {
if(isSelector(key)) {
selector =
selector === '::placeholder' ?
'::placeholder, ::-webkit-input-placeholder, ::-moz-placeholder, ::-ms-input-placeholder'
: selector

build(dest, { selector: joinSelectors(selector, key), mq, supp, src: _src[key] })
let _key =
key === '::placeholder' ?
'::placeholder,::-webkit-input-placeholder,::-moz-placeholder,::-ms-input-placeholder'
: key

build(dest, { selector: joinSelectors(selector, _key), mq, supp, src: _src[key] })
}
else if(isMediaQuery(key)) {
build(dest, { selector, mq: joinMediaQueries(mq, key), supp, src: _src[key] })
Expand Down

0 comments on commit fa0f440

Please sign in to comment.