ui icon indicating copy to clipboard operation
ui copied to clipboard

tailwind.config.ts has Type error for extending keyframes . Expecting string but provided number.

Open sp88011 opened this issue 2 years ago • 1 comments

image

 keyframes: {
        "accordion-down": {
          from: { height: 0 }, //Type 'number' is not assignable to type 'string'.
          to: { height: "var(--radix-accordion-content-height)" },
        },
        "accordion-up": {
          from: { height: "var(--radix-accordion-content-height)" },
          to: { height: 0 }, // Type 'number' is not assignable to type 'string'.
        },
      },
      ```

sp88011 avatar Jun 22 '23 09:06 sp88011

The default tailwind.config file is written in JavaScript so that problem never showed up. However you're right keyframes require string values in the tailwind.config.ts. I'll submit a PR to solve this.

dan5py avatar Jun 22 '23 13:06 dan5py