Skip to content

Restore the default info color of alerts - #1698

Merged
lovasoa merged 5 commits into
sqlpage:mainfrom
mkerz-masfg:alert-default-color
Nov 30, 2026
Merged

lovasoa merged 5 commits into
sqlpage:mainfrom
mkerz-masfg:alert-default-color

Conversation

@mkerz-masfg

@mkerz-masfg mkerz-masfg commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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

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.
@mkerz-masfg mkerz-masfg changed the title Restore the default info color of alertsAlert default color Restore the default info color of alerts Nov 30, 2026
@lovasoa
lovasoa enabled auto-merge November 30, 2026 10:36
@lovasoa
lovasoa added this pull request to the merge queue Nov 30, 2026
Merged via the queue into sqlpage:main with commit 304a377 Nov 30, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

alert: an alert without color is grey instead of info blue, because the default value has a leading space

2 participants