diff --git a/components/color-picker/src/components/gradient.component.ts b/components/color-picker/src/components/gradient.component.ts
index 7eb75fdba79..a0104ca7ef8 100644
--- a/components/color-picker/src/components/gradient.component.ts
+++ b/components/color-picker/src/components/gradient.component.ts
@@ -16,7 +16,6 @@ import { generateColor } from '../util/util';
template: `
diff --git a/components/color-picker/src/components/palette.component.ts b/components/color-picker/src/components/palette.component.ts
index 5bd5e709a1c..5bb5474fe2c 100644
--- a/components/color-picker/src/components/palette.component.ts
+++ b/components/color-picker/src/components/palette.component.ts
@@ -10,7 +10,7 @@ import { Component } from '@angular/core';
selector: 'color-palette',
standalone: true,
template: `
-
+
`
diff --git a/components/color-picker/src/components/picker.component.ts b/components/color-picker/src/components/picker.component.ts
index 74d83e3bff0..e1fad8a8c28 100644
--- a/components/color-picker/src/components/picker.component.ts
+++ b/components/color-picker/src/components/picker.component.ts
@@ -52,20 +52,13 @@ function getPosition(e: EventType): { pageX: number; pageY: number } {
-
+
`
diff --git a/components/color-picker/src/components/slider.component.ts b/components/color-picker/src/components/slider.component.ts
index 7a3ade80b87..ffd04752497 100644
--- a/components/color-picker/src/components/slider.component.ts
+++ b/components/color-picker/src/components/slider.component.ts
@@ -54,7 +54,7 @@ function getPosition(e: EventType): { pageX: number; pageY: number } {
diff --git a/components/color-picker/style/index.less b/components/color-picker/style/index.less
index b6e0adcdaa5..6b0535bc01a 100644
--- a/components/color-picker/style/index.less
+++ b/components/color-picker/style/index.less
@@ -26,6 +26,15 @@
}
}
+ &-gradient {
+ position: absolute;
+ inset: 0;
+ }
+
+ &-palette {
+ position: relative;
+ }
+
&-select {
.@{color-picker-prefix-cls}-palette {
min-height: 160px;
@@ -46,9 +55,15 @@
right: 0;
bottom: 0;
left: 0;
+ background-image: linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsla(0deg, 0%, 100%, 0));
border-radius: inherit;
}
+ &-transform {
+ position: absolute;
+ z-index: 1;
+ }
+
&-handler {
box-sizing: border-box;
width: 16px;