Repository navigation
Restore the default info color of alerts - #1698
Merged
Merged
Conversation
The default value " info" had a leading space, so an alert without color got the classes "alert-" and "info" instead of "alert-info" and was grey. The role attribute had the same leading space.
lovasoa
approved these changes
Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The default value of the alert color had a leading space ({{default color " info"}}), so an alert without color got the classes "alert-" and "info" instead of "alert-info" and was grey instead of info blue. The role attribute had the same leading space (role=" alert"); browsers still recognize it, but it is fixed in the same line. Both came with "fix alert component styles" (04e1046) in v0.35.0.
Added a separate Playwright fixture (tests/end-to-end/fixtures/alert-default-color/) that fails on v0.48.0 and passes with the change (checked with the official v0.48.0 binary and the template of current main), and a CHANGELOG entry. The existing alert fixture expects exactly one alert on the page, so it stays unchanged.
Fixes #1697