Browse Source

fix(button): ghost style

pull/514/head
Vben 5 years ago
parent
commit
f4af231172
  1. 6
      build/vite/plugin/hmr.ts
  2. 4
      src/design/ant/btn.less

6
build/vite/plugin/hmr.ts

@ -13,8 +13,10 @@ export function configHmrPlugin(): Plugin {
if (file.match(/xml$/)) return [];
modules.forEach((m) => {
m.importedModules = new Set();
m.importers = new Set();
if (!m.url.match(/\.(css|less)/)) {
m.importedModules = new Set();
m.importers = new Set();
}
});
return modules;

4
src/design/ant/btn.less

@ -185,7 +185,7 @@
}
}
&-ghost {
&-background-ghost {
color: @button-ghost-color;
background-color: transparent;
border-color: @button-ghost-color;
@ -193,7 +193,7 @@
&:hover,
&:focus {
color: @button-ghost-hover-color;
color: @button-ghost-hover-color !important;
background-color: @button-ghost-hover-bg-color;
border-color: @button-ghost-hover-color;
}

Loading…
Cancel
Save