From 759e3554b0a91973060cc8258ce1509e6af4828d Mon Sep 17 00:00:00 2001 From: AlekseyManetov Date: Tue, 17 Dec 2024 16:45:52 +0100 Subject: [PATCH] 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 --- changelog.md | 5 +++++ uui-components/src/widgets/Svg.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;