Skip to content

Commit ff70b85

Browse files
HoraynowyDEV
andauthored
update select styles (#627)
Co-authored-by: Dominik Nowik <[email protected]>
1 parent 9dd740f commit ff70b85

File tree

3 files changed

+27
-10
lines changed

3 files changed

+27
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nordcloud/gnui",
33
"description": "Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products",
4-
"version": "8.13.1",
4+
"version": "8.13.2",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

src/components/select/Select.tsx

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import theme from "../../theme";
1212
const SelectContainer = styled.div`
1313
.react-select {
1414
&-container {
15-
& > div {
15+
& > .react-select__control {
1616
background: ${theme.color.field.default};
1717
border: 1px solid ${theme.color.border.input};
1818
&:hover {
@@ -63,20 +63,37 @@ const SelectContainer = styled.div`
6363
}
6464
&__menu {
6565
box-shadow: ${theme.shadow.shadow04};
66+
margin-top: ${theme.spacing.spacing01};
6667
z-index: ${theme.zindex.dropdown};
68+
border-radius: ${theme.radiusDefault};
69+
background: ${theme.color.background.ui01};
70+
border: 1px solid ${theme.color.border.input};
71+
72+
&-list {
73+
padding: ${theme.spacing.spacing02};
74+
}
6775
}
6876
&__option {
77+
margin-top: ${theme.spacing.spacing01};
78+
border-radius: ${theme.radius.md};
79+
&:active {
80+
background: ${theme.color.interactive.secondaryActive};
81+
color: ${theme.color.text.text01};
82+
}
83+
&--is-focused {
84+
cursor: pointer;
85+
background: ${theme.color.interactive.secondaryHover};
86+
color: ${theme.color.text.text01};
87+
}
6988
&--is-selected {
70-
background-color: ${theme.color.support.grey};
89+
cursor: not-allowed;
90+
background: ${theme.color.interactive.secondaryHover};
7191
color: ${theme.color.text.text01};
72-
&.react-select__option--is-focused {
73-
background-color: ${theme.color.support.grey};
92+
&:active {
93+
background: ${theme.color.interactive.secondaryHover};
7494
color: ${theme.color.text.text01};
7595
}
7696
}
77-
&--is-focused {
78-
background-color: ${theme.color.interactive.secondary};
79-
}
8097
}
8198
}
8299
`;

0 commit comments

Comments
 (0)