Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.
This repository was 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

Description

@Tony-Ndichu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions