fix(tradein/v2/a11y): осмысленный текст sr-only <h1> результата оценки
All checks were successful
CI Trade-In / changes (pull_request) Successful in 16s
CI / changes (pull_request) Successful in 15s
CI Trade-In / backend-tests (pull_request) Has been skipped
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped
CI Trade-In / frontend-checks (pull_request) Successful in 1m14s

axe-аудит /v2 запросил landmark-one-main + page-has-heading-one; оба
уже закрыты структурно в #2264 (a3cab902) — единственный <main> и
визуально-скрытый <h1> присутствуют безусловно в десктоп-ветке рендера
(проверено изолированным axe-тестом того же паттерна display:contents
+ sr-only — 0 нарушений). Меняю только текст h1 на осмысленный,
отражающий продукт ("МЕРА · Оценка недвижимости"), в один стиль с
<title> в layout.tsx, вместо нейтрального "Мера — оценка квартиры".
This commit is contained in:
bot-backend 2026-07-27 00:32:44 +03:00
parent a0647a53a9
commit 66ff9b9bb7

View file

@ -883,7 +883,9 @@ export default function TradeInV2Page() {
{/* #2264 C5: the page's single visible "title" is the SVG logo in TopNav,
so give the document a real, visually-hidden <h1> (page-has-heading-one
+ a top of the heading order for the overlay/panel <h2>s). */}
+ a top of the heading order for the overlay/panel <h2>s). Text mirrors
the <title> in layout.tsx ("МЕРА · Оценка v2") so a screen-reader user
landing on the page hears the same product framing as the tab title. */}
<h1
style={{
position: "absolute",
@ -897,7 +899,7 @@ export default function TradeInV2Page() {
border: 0,
}}
>
Мера оценка квартиры
МЕРА · Оценка недвижимости
</h1>
{/* Polite, visually-hidden status announcer for SR users. */}