Skip to content

Commit

Permalink
fix(button): ghost style
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Apr 19, 2021
1 parent 38f5072 commit f4af231
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions build/vite/plugin/hmr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/design/ant/btn.less
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,15 @@
}
}

&-ghost {
&-background-ghost {
color: @button-ghost-color;
background-color: transparent;
border-color: @button-ghost-color;
border-width: 1px;

&: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;
}
Expand Down

0 comments on commit f4af231

Please sign in to comment.