perf: disable accessibility for layout views (#10482)

a11y is enabled by default on controls still, this just disables on layouts alone as unnecessary.
It can be enabled on a per layout view basis if needed anytime.
This commit is contained in:
farfromrefuge
2024-02-10 18:25:04 +00:00
committed by GitHub
parent d34a4395ec
commit 3bd6d9b01e
6 changed files with 25 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ function makePropertyEnumConverter<T>(enumValues) {
export const accessibilityEnabledProperty = new CssProperty<Style, boolean>({
name: 'accessible',
defaultValue: true,
cssName: 'a11y-enabled',
valueConverter: booleanConverter,
});