Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing problems when using pseudo selectors #126

Closed
itsdouges opened this issue Apr 12, 2020 · 0 comments · Fixed by #142
Closed

Typing problems when using pseudo selectors #126

itsdouges opened this issue Apr 12, 2020 · 0 comments · Fixed by #142
Assignees
Labels
bug 🐛 Something isn't working

Comments

@itsdouges
Copy link
Collaborator

 css={{
        color: 'currentColor',
        textDecoration: 'none',
        position: 'relative',
        ':before': {
          opacity: 0,
          content: '⚓',
          position: 'absolute',
          left: '-5rem',
          fontSize: '3rem',
        },
        ':hover': {
          ':before': {
            opacity: 1,
          },
        },
      }}
Type '{ color: string; textDecoration: string; position: "relative"; ':before': { opacity: number; content: string; position: string; left: string; fontSize: string; }; ':hover': { ':before': { opacity: number; }; }; }' is not assignable to type 'string | CSSProperties | (string | CSSProperties)[] | { [key: string]: CSSProperties; }'.
  The types of '':before'.position' are incompatible between these types.
    Type 'string' is not assignable to type 'PositionProperty'.ts(2322)
@itsdouges itsdouges added the bug 🐛 Something isn't working label Apr 12, 2020
@itsdouges itsdouges added this to the Table stakes v0.x.x milestone Apr 14, 2020
@itsdouges itsdouges self-assigned this Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant