Alert has left padding even when the icon is not a direct child #1177
Labels
status: help wanted
This issue is tentatively accepted pending a volunteer committed to its implementation
type: enhancement
An improvement or enhancement to an existing feature
Describe the bug
The
Alert
component has a left padding to make space for an SVG icon if present. This padding is however added if there's an SVG icon anywhere in the children of the Alert, and not only if it's a direct child, as it should be (the originalshadcdn/ui
behaves like this).Reproduction
https://stackblitz.com/edit/github-jf1qen?file=src%2Froutes%2F%2Bpage.svelte
In the second case here there should be no padding.
The fix would be:
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: