Commit 4950c1d
authored
fix: improve color contrast in AlertBox info variant (#8297)
* fix: improve color contrast in AlertBox info variant
- Change info background from bg-info-600 to bg-info-400
- Improves text contrast ratio to meet WCAG 2.1 AA standards
- Ensures better readability for users with visual impairments
The darker background (info-400) provides better contrast with
white text, meeting the minimum 4.5:1 contrast ratio requirement.
Fixes #8290
* fix: resolve CSS conflict between AlertBox and markdown styles
- Keep background color at bg-info-600 as per design system
- Add !important to paragraph color to override markdown styles
- Fix text color conflict where p tags inherit markdown paragraph styles
The issue was a CSS specificity conflict. Paragraph elements inside
AlertBox were inheriting black text color from markdown styles instead
of maintaining the white text color defined in AlertBox styles.
Fixes #8290
* improve color contrast in AlertBox info variant
* fix: add span and div to text color override
* fix: use wildcard selector for text color override1 parent e753dd2 commit 4950c1d
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
0 commit comments