Skip to content

Commit b143529

Browse files
william-xuexueyuan
andauthored
perf: remove unnecessary transforms to reduce layer count and improve scrolling performance (#6900)
* fix: remove unnecessary transforms to reduce layer count and improve scrolling performance * fix: remove unnecessary transform from base-icon to reduce layer count --------- Co-authored-by: xueyuan <xueyuan@vanchen.com>
1 parent 319b0ad commit b143529

3 files changed

Lines changed: 0 additions & 3 deletions

File tree

src/_internal/icon/src/styles/index.cssr.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export default cB('base-icon', `
88
display: inline-block;
99
position: relative;
1010
fill: currentColor;
11-
transform: translateZ(0);
1211
`, [
1312
c('svg', `
1413
height: 1em;

src/icon/src/styles/index.cssr.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default cB('icon', `
1212
display: inline-block;
1313
position: relative;
1414
fill: currentColor;
15-
transform: translateZ(0);
1615
`, [
1716
cM('color-transition', {
1817
transition: 'color .3s var(--n-bezier)'

src/tree/src/styles/index.cssr.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export default cB('tree', `
5252
padding: var(--n-node-wrapper-padding);
5353
`),
5454
cB('tree-node', `
55-
transform: translate3d(0,0,0);
5655
position: relative;
5756
display: flex;
5857
border-radius: var(--n-node-border-radius);

0 commit comments

Comments
 (0)