-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[components]: replace resize handler with container queries #7666
Comments
Internal BLI was created: FIORITECHP1-28821 |
For Popover and Dialog (Popups), CSS container queries cannot be used. They determine their size based on their content (Child -> Parent). If we make popups containment contexts, their content would be sized based on the popup size (Parent ->Child). Therefore this would end in Child->Parent->Child->Parent->... resizing. |
Blocked for the moment. |
Feature Request Description
Currently, every component that has responsive paddings or visualization based on a specific breakpoint apply class / attribute to the corresponding size and this class / attribute is used to style the component. Usually this class / attribute rely on the component width, where width is observed by resize handler in order to detect changes.
With current issue we want to start to use container queries. Container queries enable you to apply styles to an element based on the size of the element's container.
Motivation
There is issue (#5774) that reports flickering when the components are resized and it will increase the performance of the components.
Reference
Following PR (#7665) can be used for reference how responsive styles of component should be migrated to content queries from resize handler
Resources
To be addressed
Note: Some components might be missed so fill the list if some component is missing
The text was updated successfully, but these errors were encountered: