mirror of
https://github.com/maputnik/editor.git
synced 2026-12-04 15:54:24 +00:00
Follow-up to #2393. In each `text-variable-anchor-offset` row, the anchor dropdown and both offset fields shared the property name as their accessible label, so a screen reader announced the same name for every control in every row. Each control's label now adds its row and what it edits to the property label, for example "… row 2 X offset". The labels go through `t()` like the other strings in the component. I didn't add them to `src/locales/*`; they fall back to English until translated. There's no visual change; only the `aria-label` attributes differ. **Performance:** none. Only the label strings change. ## Launch Checklist - [x] Briefly describe the changes in this PR. - [x] Link to related issues: follow-up to #2393. - [x] Include before/after visuals or gifs if this PR includes visual changes: no visual change. - [x] Write tests for all new functionality: an e2e test in `layers-list.spec.ts` that adds a second row and checks the anchor, X offset and Y offset labels. It fails on `main`. - [x] Add an entry to `CHANGELOG.md` under the `## main` section. Tested locally: `npm run lint` clean, `npx tsc --noEmit` clean, `npx vitest run` (57 passed) and `npx playwright test e2e/layers-list.spec.ts` (48 passed). The new test fails when I run it against `main`. I didn't run the full e2e suite locally (it times out on Windows with several workers); it passes in CI on this PR. Assisted-By: Claude Opus 5.5 (Claude Code). It helped write the change, the test and this description. I've reviewed and tested the change and can answer questions about it.