mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
Fix color node reference and class name indexing (#55461)
Signed-off-by: Yasin B. Kalkan <yasinburakkalkan@gmail.com>
This commit is contained in:
@@ -72,10 +72,10 @@ const Palette: React.FC<PaletteProps> = (props) => {
|
||||
key={i}
|
||||
ref={(node) => {
|
||||
if (node) {
|
||||
colorNodesRef.current[`${name}-${i}`] = node;
|
||||
colorNodesRef.current[`${name}-${i + 1}`] = node;
|
||||
}
|
||||
}}
|
||||
className={`main-color-item palette-${name}-${i}`}
|
||||
className={`main-color-item palette-${name}-${i + 1}`}
|
||||
style={{
|
||||
color: (name === 'yellow' ? i > 6 : i > 5) ? firstColor : lastColor,
|
||||
fontWeight: i === 6 ? 'bold' : 'normal',
|
||||
|
||||
Reference in New Issue
Block a user