Drawer (molecule) fullscreen size #1519
Replies: 3 comments 5 replies
-
We figure out that the position is flickering in 3d model when the position is changed by prop We realise there is no UX guideline which changes the position of a drawer (only its isOpen behavior). We will create a major which changes the moleculeDrawer For the demo workarond we are going to re-mount the drawer on each placement changes in order to get a new configured one and re-mount the drawer at any placement change will create a new dom element removing the transform flickering consequently. the unique vertical actually using the drawer is coches so its an easy transition for this major. The unique change is to find the drawers and replace placement prop for initialPlacement |
Beta Was this translation helpful? Give feedback.
-
As I commented in the SUI Weekly meeting, there is the possibility that we need, in some cases, two drawers at the same time. For example, a drawer (from the right) with information of the current page related, and another drawer (from the left) with actions. In this case, we'll don't have a problem with the |
Beta Was this translation helpful? Give feedback.
-
POC:
|
Beta Was this translation helpful? Give feedback.
-
Actually the drawer only have 1 size ("m") and needs to have another one like fullScreen.
We have 2 different aproaches of taking the opening and close transitions:
The finally desired result is a feature that uses the duration
@s-ui/theme
defined tokens:on a drawer sass map in _settings.sass (molecule/drawer/src):
this token is overwriteable by any single vertical and it can also be extended with extra-values.
same for sizes:
loop on each possible value to get all different configurations (position - 4, size - 2 and duration - 4) 32 finally results.
Beta Was this translation helpful? Give feedback.
All reactions