From 61a6afcc4cea6736e6e6562f181fbb100c701cfd Mon Sep 17 00:00:00 2001 From: 4eb0da <4eb0da@yandex-team.com> Date: Tue, 15 Apr 2025 18:29:02 +0300 Subject: [PATCH] Header accessibility type commit_hash:68a19dc76f55f4c18f636b71dd4211290a45e03a --- .../divkit/src/components/utilities/Actionable.svelte | 9 +++++++-- test_data/regression_test_data/index.json | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/client/web/divkit/src/components/utilities/Actionable.svelte b/client/web/divkit/src/components/utilities/Actionable.svelte index f5b4112d8..1c2925bd7 100644 --- a/client/web/divkit/src/components/utilities/Actionable.svelte +++ b/client/web/divkit/src/components/utilities/Actionable.svelte @@ -7,7 +7,8 @@ 'button', 'image', 'checkbox', - 'radio' + 'radio', + 'header' ]); @@ -115,7 +116,11 @@ $: { if (customAccessibility?.type && SUPPORTED_ACCESSIBILITY_TYPES.has(customAccessibility.type)) { - role = customAccessibility.type; + if (customAccessibility.type === 'header') { + role = 'heading'; + } else { + role = customAccessibility.type; + } } else if (href) { role = undefined; } else if (hasJSAction) { diff --git a/test_data/regression_test_data/index.json b/test_data/regression_test_data/index.json index 8b994c619..df7838769 100644 --- a/test_data/regression_test_data/index.json +++ b/test_data/regression_test_data/index.json @@ -633,7 +633,8 @@ ], "platforms": [ "android", - "ios" + "ios", + "web" ], "steps": [ "Turn on Screen reader",