Skip to content

textDecorationStyle throws TS error when used with !important #3448

@babukamms

Description

@babukamms

Description

When I used textDecorationStyle in combination with important:

textDecorationStyle: 'dotted !important',

or

textDecorationStyle: 'dotted!',

it throws a TS error:

Type '"dotted!"' is not assignable to type 'ConditionalValue<WithEscapeHatch<TextDecorationStyle | readonly NonNullable<TextDecorationStyle | undefined>[] | undefined>>'. Did you mean '"dotted"'?ts(2820)

At the same time, I'm allowed to use important style with other CSS properties:
Image

Link to Reproduction

https://play.panda-css.com/

Steps to reproduce

  1. Use Panda CSS with TS
  2. Add textDecorationStyle property
  3. Use dotted !important or dotted! as a value

JS Framework

React (TS)

Panda CSS Version

1.7.0

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

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