feat(a11y): label controls and improve settings contrast and targets

This commit is contained in:
zarzet committed 2026-10-17 16:18:25 +07:00
1 parent 1e73ffea3b
commit befcd2adec
29 files changed
+470 -276

No files matched your search

+10 -3
View File
@@ -49,9 +49,11 @@ void main() {
}
for (final brightness in Brightness.values) {
for (final accent in MornyeAccent.values.where(
(accent) => accent != MornyeAccent.red,
)) {
// Grouped settings cells, where tinted action rows sit.
final cell = brightness == Brightness.dark
? const Color(0xff1c1c1e)
: Colors.white;
for (final accent in MornyeAccent.values) {
final scheme = MornyeTheme.build(
brightness,
accent: accent,
@@ -61,6 +63,11 @@ void main() {
greaterThanOrEqualTo(4.5),
reason: '$accent on $brightness',
);
expect(
contrast(scheme.primary, cell),
greaterThanOrEqualTo(4.5),
reason: '$accent on a $brightness grouped cell',
);
expect(
contrast(scheme.onPrimary, scheme.primary),
greaterThanOrEqualTo(4.5),