Skip to content

Commit 7b67800

Browse files
committed
v5.4.4
1 parent 1c063d5 commit 7b67800

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/netdata-ui",
3-
"version": "5.4.3",
3+
"version": "5.4.4",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/components/icon/styled.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { getColor } from "@/theme"
33
import margin from "@/mixins/margin"
44
import alignSelf from "@/mixins/alignSelf"
55
import cursor from "@/mixins/cursor"
6+
import css from "@styled-system/css"
67

78
const SIZES = {
89
small: "14px",
@@ -15,6 +16,8 @@ const styledHoverColor = ({ theme, hoverColor }) =>
1516
hoverColor && `&:hover { fill: ${getColor(hoverColor)({ theme })}; }`
1617
const styledRotate = ({ rotate }) => !isNaN(rotate) && `transform: rotate(${rotate * 90}deg);`
1718

19+
const sx = props => css(props.sx)(props)
20+
1821
export const StyledIcon = styled.svg`
1922
height: ${({ size, height }) => height || SIZES[size]};
2023
width: ${({ size, width }) => width || SIZES[size]};
@@ -26,4 +29,5 @@ export const StyledIcon = styled.svg`
2629
${margin}
2730
${alignSelf}
2831
${cursor}
32+
${sx}
2933
`

0 commit comments

Comments
 (0)