Skip to content

Commit b310cbb

Browse files
authored
chore(drops): add hideShadow prop to menu dropdown component (#386)
* chore(drops): add hideShadow prop to menu dropdown component * v2.3.19
1 parent 84735f8 commit b310cbb

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

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": "2.3.18",
3+
"version": "2.3.19",
44
"description": "netdata UI kit",
55
"main": "./lib/index.js",
66
"files": [

src/components/drops/menu/dropdown.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ import styled from "styled-components"
33
import Flex from "src/components/templates/flex"
44

55
const Container = styled(Flex)`
6-
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14),
7-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
6+
${({ hideShadow }) =>
7+
!hideShadow &&
8+
"box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);"}
89
list-style-type: none;
910
`
1011

11-
const Dropdown = ({ value, onItemClick, items, itemProps, renderItem }) => (
12+
const Dropdown = ({ hideShadow, itemProps, items, onItemClick, renderItem, value }) => (
1213
<Container
1314
as="ul"
1415
role="listbox"
1516
background="dropdown"
17+
hideShadow={hideShadow}
1618
padding={[0]}
1719
margin={[1, 0]}
1820
column

0 commit comments

Comments
 (0)