antfu-collective / vitesse

🏕 Opinionated Vite + Vue Starter Template
https://vitesse.netlify.app/
MIT License
8.8k stars 932 forks source link

When using the ant-design-vue button, the button background-color is overwritten by the reset style. #484

Closed lessroc closed 1 year ago

lessroc commented 1 year ago

Describe the bug

Here: /node_modules/.pnpm/@unocss+reset@0.50.6/node_modules/@unocss/reset/tailwind.css

/*

  1. Correct the inability to style clickable types in iOS and Safari.
  2. Remove default button styles. */

button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; / 1 / background-color: transparent; / 2 / background-image: none; / 2 / }

Reproduction

pnpm i --save ant-design-vue; use button

System Info

System:
    OS: Windows 10 10.0.17763
    CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
    Memory: 4.93 GB / 15.92 GB
  Binaries:
    Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan ([0x7FFA1D064F90] ANOMALY: meaningless REX prefix used

Used Package Manager

pnpm

Validations

antfu commented 1 year ago

use @unocss/reset/tailwind-compact.css instead