diff --git a/changelog.md b/changelog.md index f2020ac01e..23e49b09d3 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ +# 5.12.1 - 17.12.2024 +**What's Fixed** +* Revert '[Svg]: don't set fill attribute if it's not provided' change from 5.12.0 version. Because it turned out that many users relied on the previous behavior where the fill attribute was cleared by default. If you need to render icon with built-in fill, please look at this issue comment - https://github.com/epam/UUI/issues/2684#issuecomment-2548751434 + + # 5.12.0 - 12.12.2024 **What's New** diff --git a/uui-components/src/widgets/Svg.tsx b/uui-components/src/widgets/Svg.tsx index 53fedbbdad..b1ced549ec 100644 --- a/uui-components/src/widgets/Svg.tsx +++ b/uui-components/src/widgets/Svg.tsx @@ -27,10 +27,10 @@ export const Svg = React.forwardRef((props, ref) => { const svgProps: ISvgProps = { className: cx(props.cx), + fill: fillColor, ...props.rawProps, }; - if (fillColor !== undefined) svgProps.fill = fillColor; if (height !== undefined) svgProps.height = height; if (width !== undefined) svgProps.width = width;