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
EmptyState: Investigate ResizeObserver for proper layout handling #648
Comments
I will look into this one! First thing I noticed that typescript does not ship types for it within This is what we get back from the ResizeObserver, if we observe the container element of the |
Feature Request
Summary
As part of progressive enhancement, we should investigate the resizeobserver for the empty state component to get rid of the _updateLayout call. Make the component aware of it's container view (hello container queries)
Feature Description
The current problem we have is that the empty-state component is used in multiple parents and "extended" versions of the component by using the dtCustomEmptyState directive and we would need to handle _updateLayout for each scenario.
By using the resize observer we would transfer this logic into the empty state since the component itself is aware of the container's width.
Attachments
The text was updated successfully, but these errors were encountered: