You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the dropdown menu of Select, DatePicker and TimePicker are blocked by a overflow: hidden container. The solution we've decided on is to use a portal to render the menu outside the DOM hierarchy of the container (under <body>).
I'm going to break this task down into reusable components and hooks that can be shared between Select, DatePicker and TimePicker.
Components from low to high level:
Overlay
Add prop color to control the background color of the overlay
Popover
New component that shows a popup next to an anchor element (e.g. popup for Select, DatePicker and TimePicker) using Overlay
Select
Rewrite (will break it down further)
DatePicker
Rewrite (will break it down further)
TimePicker
Rewrite (will break it down further)
For now we just want to get a quick implementation out for the demo so I will make PRs for the following tasks first.
Select: use react-select with no search bar (PR merged)
DatePicker: add a prop modal and use Popover for the calendar if modal is set to true
TimePicker: add a prop modal and use Popover for the wheels if modal is set to true
The text was updated successfully, but these errors were encountered:
Currently the dropdown menu of Select, DatePicker and TimePicker are blocked by a
overflow: hidden
container. The solution we've decided on is to use a portal to render the menu outside the DOM hierarchy of the container (under<body>
).I'm going to break this task down into reusable components and hooks that can be shared between Select, DatePicker and TimePicker.
Components from low to high level:
color
to control the background color of the overlayOverlay
For now we just want to get a quick implementation out for the demo so I will make PRs for the following tasks first.
modal
and usePopover
for the calendar ifmodal
is set totrue
modal
and usePopover
for the wheels ifmodal
is set totrue
The text was updated successfully, but these errors were encountered: