Skip to content

Modernize flash message template for Bootstrap 5#428

Open
Agbokoudjo wants to merge 2 commits intosonata-project:3.xfrom
Agbokoudjo:feature/bootstrap5-flash
Open

Modernize flash message template for Bootstrap 5#428
Agbokoudjo wants to merge 2 commits intosonata-project:3.xfrom
Agbokoudjo:feature/bootstrap5-flash

Conversation

@Agbokoudjo
Copy link
Copy Markdown

Modernize flash message template for Bootstrap 5

This PR updates the render.html.twig template in FlashMessage to be compatible with Bootstrap 5.

Changes:

  • Replaces alert-dismissable with alert-dismissible
  • Uses Bootstrap 5 button close syntax: <button type="button" class="btn-close" ...>
  • Replaces badge-default with badge bg-secondary
  • Updates HTML structure to use input-group-text where necessary
  • Retains Sonata logic (e.g. sonata_flashmessages_* functions)

Why?

To modernize the front-end of Sonata and align with Bootstrap 5 and AdminLTE 4.


Contributed by: AGBOKOUDJO Franck
Company: INTERNATIONALES WEB SERVICES
Email: internationaleswebservices@gmail.com

@Agbokoudjo Agbokoudjo force-pushed the feature/bootstrap5-flash branch from b4d6148 to e42812d Compare November 2, 2025 09:52
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

This PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale label May 1, 2026
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.

1 participant