Skip to content

Support custom variants in Alert component#7447

Merged
javiereguiluz merged 1 commit intoEasyCorp:4.xfrom
javiereguiluz:fix_7446
Feb 16, 2026
Merged

Support custom variants in Alert component#7447
javiereguiluz merged 1 commit intoEasyCorp:4.xfrom
javiereguiluz:fix_7446

Conversation

@javiereguiluz
Copy link
Copy Markdown
Collaborator

This fixes #7446.

For unknown variants, it shows the alert as "info" (because it's neutral) and applies a CSS class with the custom vairant name, so you can easily customize the styles.

@javiereguiluz javiereguiluz added this to the 4.x milestone Feb 15, 2026
@javiereguiluz javiereguiluz merged commit cab06e7 into EasyCorp:4.x Feb 16, 2026
18 checks passed
@javiereguiluz javiereguiluz deleted the fix_7446 branch February 16, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flash messages Twig component doesn't allow unknown flash keys (reopen of #7014)

1 participant