Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

:hover and :focus just don't work on my end #1021

Open
Tony-Ndichu opened this issue Mar 22, 2019 · 1 comment
Open

:hover and :focus just don't work on my end #1021

Tony-Ndichu opened this issue Mar 22, 2019 · 1 comment

Comments

@Tony-Ndichu
Copy link

Tony-Ndichu commented Mar 22, 2019

Here is my code

import Radium from 'radium';
import TextareaAutosize from 'react-textarea-autosize';

let style = {
    minHeight: 50,
    borderStyle: 'solid',
    width: '99%',
    resize: 'none',
    ':hover': {
      boxShadow: '0 0 8px 0 rgba(110, 100, 200, 0.6)',
      border: 'red !important',
      backgroundColor: 'yellow !important',
    },
    ':focus': {
      outline: 'none',
    }
};

class TextArea extends React.Component<iProps>{
  
...
        return (
          <InputWrapper>
            {label && <Label htmlFor={name}>{label}</Label>}
            <TextareaAutosize
              key={1}
              style={style}
              minRows={1}
              maxRows={6}
              {...input} 
              id={name} 
              name={name} 
              meta={meta}/>
              {meta.error && <span>{sentenceCase(meta.error)}</span>}
          </InputWrapper>
...
    );
  }
}

export default Radium( TextArea );

But whatever variations of wrapping the app using Radium that I try or anything else at all, focus and hover JUST DONT WORK. I was so grateful to find this package only to find that it doesn't do what it says it does. Am following the documentation directly

@Tony-Ndichu Tony-Ndichu changed the title :hover AND :focus JUST DOESNT WORK :hover AND :focus JUST DON'T WORK Mar 22, 2019
@Tony-Ndichu Tony-Ndichu changed the title :hover AND :focus JUST DON'T WORK :hover AND :focus just don' work on my end Mar 22, 2019
@Tony-Ndichu Tony-Ndichu changed the title :hover AND :focus just don' work on my end :hover and :focus just don' work on my end Mar 22, 2019
@Tony-Ndichu Tony-Ndichu changed the title :hover and :focus just don' work on my end :hover and :focus just don't work on my end Mar 22, 2019
@Jobeso
Copy link

Jobeso commented Mar 22, 2019

I also had issues with that and ended up using the friendly-pseudos plugin. With that it's working fine. Hope that helps you, too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants