Skip to content

Commit d227c8a

Browse files
committed
fix:用例修复以及图标修改
1 parent f0b6b92 commit d227c8a

File tree

9 files changed

+12
-21
lines changed

9 files changed

+12
-21
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ 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 demo = page.locator('pc-demo').filter({ hasText: /^复选框$/ }).nth(1)
7+
const checkbox = await page.locator('.tiny-checkbox').first()
88
await expect(checkbox).toHaveClass(/is-checked/)
9-
await expect(checkbox.locator('.tiny-checkbox__inner svg path').first()).toHaveCSS('fill', 'rgb(20, 118, 255)')
9+
await expect(checkbox.locator('.tiny-checkbox__inner svg path').first()).toHaveCSS('fill', 'rgb(255, 255, 255)')
1010
await checkbox.click()
1111
await expect(checkbox).not.toHaveClass(/is-checked/)
1212
})

examples/sites/demos/pc/app/checkbox/vertical-checkbox.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test('垂直布局', async ({ page }) => {
1919
await checkedLabelSZ.click()
2020
await expect(checkedLabelSZ).toHaveClass(/is-checked/)
2121
const parentWrapper = page.getByLabel('checkbox-group').first()
22-
await expect(parentWrapper).toHaveCSS('display', 'inline-block')
22+
await expect(parentWrapper).toHaveCSS('display', 'flex')
2323
await expect(checkedLabelBJ).toHaveCSS('display', 'block')
2424
await expect(checkedLabelSH).toHaveCSS('display', 'block')
2525
await expect(checkedLabelGZ).toHaveCSS('display', 'block')

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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/steps/index.less

Lines changed: 1 addition & 2 deletions
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;
Lines changed: 1 addition & 10 deletions
Loading

packages/theme/src/tabs/index.less

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)