Skip to content

Commit 9f49aa1

Browse files
authored
fix:用例修复以及图标修改 (#3226)
1 parent e82c057 commit 9f49aa1

File tree

10 files changed

+10
-24
lines changed

10 files changed

+10
-24
lines changed

examples/sites/demos/pc/app/checkbox/basic-usage.spec.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { test, expect } from '@playwright/test'
33
test('基础用法', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('checkbox#basic-usage')
6-
const demo = page.locator('#basic-usage')
7-
const checkbox = demo.locator('.tiny-checkbox')
6+
const checkbox = await page.locator('.tiny-checkbox').first()
87
await expect(checkbox).toHaveClass(/is-checked/)
98
await expect(checkbox.locator('.tiny-checkbox__inner svg path').first()).toHaveCSS('fill', 'rgb(20, 118, 255)')
109
await checkbox.click()

examples/sites/demos/pc/app/time-line/status.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test.describe('节点状态', () => {
1111
// 默认状态
1212
await expect(timelineItems.first()).toHaveClass(/process-wait/)
1313
await expect(timelineItems.first().locator('.icon')).toHaveCSS('border-color', 'rgb(219, 219, 219)')
14-
await expect(timelineItems.first().locator('.icon .number')).toHaveCSS('color', 'rgb(128, 128, 128)')
14+
await expect(timelineItems.first().locator('.icon .number')).toHaveCSS('color', 'rgb(25, 25, 25)')
1515

1616
// 成功状态
1717
await expect(timelineItems.nth(1)).toBeVisible()

packages/theme/src/checkbox/index.less

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
padding-left: 8px;
112112
font-size: var(--tv-Checkbox-font-size);
113113
font-weight: var(--tv-Checkbox-font-weight);
114+
padding-top: 3px;
114115
}
115116

116117
&.is-display-only {
@@ -149,7 +150,7 @@
149150
}
150151
}
151152

152-
&__input {
153+
&__input {
153154
.@{checkbox-prefix-cls}__inner {
154155
svg {
155156
font-size: var(--tv-Checkbox-icon-size);

packages/theme/src/dropdown-item/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
& > .@{dropdown-item-prefix-cls}__expand,
103103
& > .@{dropdown-item-prefix-cls}__content {
104104
.@{svg-prefix-cls} {
105-
fill: var(--tv-DropdownItem-icon-color-hover);
105+
fill: transparent;
106106
}
107107
}
108108

packages/theme/src/grid/checkbox.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
}
148148
&.is__disabled > input:not(:checked) + .tiny-grid-checkbox__icon .icon-check {
149149
path:first-child {
150-
fill: var(--tv-Grid-bg-color-disable);
150+
fill: var(--tv-Grid-bg-color-disabled);
151151
}
152152
&:hover {
153153
path:last-child {

packages/theme/src/grid/vars.less

-4
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,8 @@
4343
--tv-Grid-border-color-active: var(--tv-color-border-active, #191919);
4444
// 表格背景颜色
4545
--tv-Grid-bg-color: var(--tv-color-bg-3, #ffffff);
46-
// 表格激活态背景色
47-
--tv-Grid-bg-color-active: var(--tv-color-bg-active-emphasize-light, #f0f7ff);
4846
// 表格悬浮背景色
4947
--tv-Grid-bg-color-hover: var(--tv-color-bg-hover, #f5f5f5);
50-
// 表格禁用背景色
51-
--tv-Grid-bg-color-disabled: var(--tv-color-bg-disabled, #f0f0f0);
5248
// 表格选中背景色
5349
--tv-Grid-bg-color-selected: var(--tv-color-bg-active-emphasize-light, #f0f7ff);
5450
// 表格浅灰色背景颜色(展开行、斑马纹等)

packages/theme/src/steps/index.less

+1-2
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,6 @@
702702
.title {
703703
font-size: var(--tv-Steps-font-size);
704704
margin-left: var(--tv-Steps-text-margin-left);
705-
line-height: 1.5;
706705
font-weight: 500;
707706
overflow: hidden;
708707
display: -webkit-box;
@@ -1146,7 +1145,6 @@
11461145
overflow: hidden;
11471146
z-index: 15;
11481147
color: var(--tv-Steps-unselected-icon-color);
1149-
background-color: var(--tv-Steps-node-icon-bg-color);
11501148
cursor: pointer;
11511149

11521150
&[class*=~'icon-'] {
@@ -1364,6 +1362,7 @@
13641362
display: flex;
13651363
flex: 1 0 auto;
13661364
align-items: center;
1365+
line-height: 18px;
13671366

13681367
.name {
13691368
display: -webkit-box;
+1-10
Loading

packages/theme/src/tabs/index.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274
}
275275

276276
.@{tabs-prefix-cls}__icon-close {
277-
border-radius: 50%;
277+
border-radius: 4px;
278278
text-align: center;
279279
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
280280
margin: var(--tv-Tabs-icon-close-margin-vertical) var(--tv-Tabs-icon-close-margin-right) var(--tv-Tabs-icon-close-margin-vertical) var(--tv-Tabs-icon-close-margin-left);

packages/theme/src/tabs/vars.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
// 选中标签项小滑块边框色
116116
--tv-Tabs-item-active-border-color: var(--tv-Tabs-header-font-active-border-color);
117117
// 可关闭项关闭按钮悬浮背景色
118-
--tv-Tabs-icon-close-hover-bg-color: var(--tv-color-bg-header, #f0f0f0);
118+
--tv-Tabs-icon-close-hover-bg-color: var(--tv-color-bg-hover, #f0f0f0);
119119
// 可关闭项关闭图标默认背景色
120120
--tv-Tabs-icon-close-default-bg-color: transparent;
121121
// 可关闭项未选中项的关闭图标色

0 commit comments

Comments
 (0)