Skip to content

Commit

Permalink
change tailwind styles on alert to be more specific when determining …
Browse files Browse the repository at this point in the history
…if alert has icon
  • Loading branch information
walker-tx committed Aug 28, 2024
1 parent 2e6474a commit 701b69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sites/docs/src/lib/registry/default/ui/alert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Description from "./alert-description.svelte";
import Title from "./alert-title.svelte";

export const alertVariants = tv({
base: "[&>svg]:text-foreground relative w-full rounded-lg border p-4 [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4",
base: "[&>svg]:text-foreground relative w-full rounded-lg border p-4 [&:has(>svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4",

variants: {
variant: {
Expand Down

0 comments on commit 701b69d

Please sign in to comment.