✨(react) add a popover component
A design system needs a popover mecanism. In the select component, this logic is handled by downshift. We introduce a new component, responsible to open an element in a popin and close it when the user click outside of it.
This commit is contained in:
committed by
aleb_the_flash
parent
f967775fb6
commit
1d1cf81cf6
11
packages/react/src/components/Popover/index.scss
Normal file
11
packages/react/src/components/Popover/index.scss
Normal file
@@ -0,0 +1,11 @@
|
||||
.c__popover {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
width: fit-content;
|
||||
z-index: 1;
|
||||
|
||||
&:not(&--borderless) {
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
|
||||
background-color: var(--c--components--forms-datepicker--menu-background-color);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user