Skip to content

Commit 15dabec

Browse files
authored
v5.5.5 (#635)
* Raise importance of pill cursor css value * v5.5.5 * Fix failing test
1 parent 80cd6f9 commit 15dabec

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.jest-test-results.json
44
.jest-tmp
55
.idea
6+
.claude/
67
node_modules
78
public
89
lib

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.5.4",
3+
"version": "5.5.5",
44
"description": "netdata UI kit",
55
"main": "dist/index.js",
66
"module": "dist/es6/index.js",

src/components/pill/styled.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ export const MasterCardContainer = styled(Flex).attrs(
2323
}
2424
`
2525

26+
const cursorStyle = props => {
27+
if (props.onClick) return `&& { cursor: pointer; }`
28+
return ""
29+
}
30+
2631
export const PillContainer = styled(Flex).attrs(
2732
({
2833
round = true,
@@ -41,19 +46,21 @@ export const PillContainer = styled(Flex).attrs(
4146
semi,
4247
...rest
4348
}) => ({
49+
...(onClick && { cursor: "pointer" }),
4450
padding: getPillPadding(padding, size, tiny),
4551
round: round === false ? 1 : round === true ? 7.5 : round,
4652
border: {
4753
side: "all",
4854
color: borderColor || getPillColor(semi ? "hollow" : "border", flavour),
4955
size: "1px",
5056
},
51-
...(onClick && { cursor: "pointer" }),
5257
justifyContent,
5358
alignItems,
5459
position,
5560
zIndex,
5661
background: getPillBackground({ background, flavour, hollow, semi }),
5762
...rest,
5863
})
59-
)``
64+
)`
65+
${cursorStyle}
66+
`

0 commit comments

Comments
 (0)