Skip to content
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

Dashboard widget theme issues #8137

Open
jouni opened this issue Nov 12, 2024 · 1 comment
Open

Dashboard widget theme issues #8137

jouni opened this issue Nov 12, 2024 · 1 comment

Comments

@jouni
Copy link
Member

jouni commented Nov 12, 2024

Unsupported selectors

The Lumo theme is using unsupported selectors, such as #content, #drag-handle, #remove-button, #resize-handle (and other resize-related IDs), and #move-backward (and other move-related IDs).

Those elements need to be parts if they should be stylable by themes.

Blur filter bleeding outside the widget

When a widget is in move or resize mode, the widget content is blurred (and the opacity is reduced). If the content area defines a solid background color, and if the padding of the content are is small enough, the blurred content can become visible outside the widget boundaries. This can look odd and unwanted. Notice the purple glow outside the edges of the content area (focus outline removed to make it more obvious):

Screenshot 2024-11-12 at 16 12 28

A more robust solution, instead of applying the filter property on the content element, would be to apply the backdrop-filter property on an element that is on top of the content area. That said, we’d need a semi-transparent base color in Lumo to get it working, as you can't combine opacity and backdrop-filter on the same element.

@jouni
Copy link
Member Author

jouni commented Nov 13, 2024

Another implementation option is to apply the filter and opacity to the slotted contents, instead of the #content wrapper element. Then the #content wrapper will clip any overflowing blurred elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants