Skip to content

Commit c629aed

Browse files
authored
Merge pull request #1550 from easyops-cn/jojiang/basic
fix(): refine button style
2 parents 2ca2cd0 + 16a18c5 commit c629aed

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

bricks/basic/src/button/button.shadow.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,19 @@ button:active {
268268
border-color: var(--antd-border-color-base) !important;
269269
}
270270

271+
/* neutral [不带任何品牌色,单纯浅色背景] */
272+
273+
.neutral {
274+
color: var(--antd-btn-default-color);
275+
background: var(--antd-btn-default-bg);
276+
border: 1px solid var(--antd-btn-default-border);
277+
}
278+
279+
.neutral:hover {
280+
background-color: rgba(0, 0, 0, 0.04);
281+
border: 1px solid var(--antd-btn-default-border);
282+
}
283+
271284
.icon {
272285
background: var(--palette-gray-3);
273286
border: 1px solid transparent;

bricks/basic/src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const ALLOWED_BUTTON_TYPES = [
66
"link",
77
"text",
88
"icon",
9+
"neutral",
910
] as const;
1011

1112
export const ALLOWED_COMPONENT_SIZES = [

bricks/basic/src/interface.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export type ButtonType =
2323
| "ghost"
2424
| "link"
2525
| "text"
26-
| "icon";
26+
| "icon"
27+
| "neutral";
2728

2829
export type ComponentSize = "large" | "medium" | "small" | "xs";
2930

0 commit comments

Comments
 (0)