Add browser accessibility tests for the reports
Fixes found by axe: the chart axis captions are darker and larger, the period heading keeps its heading role with the live region inside it, and scrollable tables are focusable regions named by their table. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -69,5 +69,12 @@ class AppServiceProvider extends ServiceProvider
|
||||
->select('native')
|
||||
->block('error')
|
||||
->replace('text-red-600!', 'text-red-700! dark:!text-red-400');
|
||||
|
||||
// Chart axis captions are gray-500 at 10 px, 4.4:1 on the page background.
|
||||
foreach (['axis.y.label', 'axis.y.right.label', 'axis.x.label'] as $block) {
|
||||
TallStackUi::customize('chart')
|
||||
->block($block)
|
||||
->replace(['text-gray-500' => 'text-gray-700', 'dark:text-dark-400' => 'dark:text-dark-200', 'text-[0.65rem]' => 'text-xs']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user