Commit f4af231172874eeffa9097e2624c4a7d0654f7d7

Authored by Vben
1 parent 38f50726

fix(button): ghost style

build/vite/plugin/hmr.ts
@@ -13,8 +13,10 @@ export function configHmrPlugin(): Plugin { @@ -13,8 +13,10 @@ export function configHmrPlugin(): Plugin {
13 if (file.match(/xml$/)) return []; 13 if (file.match(/xml$/)) return [];
14 14
15 modules.forEach((m) => { 15 modules.forEach((m) => {
16 - m.importedModules = new Set();  
17 - m.importers = new Set(); 16 + if (!m.url.match(/\.(css|less)/)) {
  17 + m.importedModules = new Set();
  18 + m.importers = new Set();
  19 + }
18 }); 20 });
19 21
20 return modules; 22 return modules;
src/design/ant/btn.less
@@ -185,7 +185,7 @@ @@ -185,7 +185,7 @@
185 } 185 }
186 } 186 }
187 187
188 - &-ghost { 188 + &-background-ghost {
189 color: @button-ghost-color; 189 color: @button-ghost-color;
190 background-color: transparent; 190 background-color: transparent;
191 border-color: @button-ghost-color; 191 border-color: @button-ghost-color;
@@ -193,7 +193,7 @@ @@ -193,7 +193,7 @@
193 193
194 &:hover, 194 &:hover,
195 &:focus { 195 &:focus {
196 - color: @button-ghost-hover-color; 196 + color: @button-ghost-hover-color !important;
197 background-color: @button-ghost-hover-bg-color; 197 background-color: @button-ghost-hover-bg-color;
198 border-color: @button-ghost-hover-color; 198 border-color: @button-ghost-hover-color;
199 } 199 }