From d93debc63456300a919658fb0434d54e0758192d Mon Sep 17 00:00:00 2001 From: Kris Date: Fri, 9 Feb 2024 08:42:28 -0500 Subject: [PATCH] A11Y: mark up custom nav section form for screen readers (#25623) --- .../components/modal/sidebar-section-form.hbs | 57 ++++++++++++------- .../components/sidebar/section-form-link.hbs | 11 +++- 2 files changed, 46 insertions(+), 22 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/modal/sidebar-section-form.hbs b/app/assets/javascripts/discourse/app/components/modal/sidebar-section-form.hbs index 7306a89683e..67c44ca954c 100644 --- a/app/assets/javascripts/discourse/app/components/modal/sidebar-section-form.hbs +++ b/app/assets/javascripts/discourse/app/components/modal/sidebar-section-form.hbs @@ -18,6 +18,7 @@ @type="text" @value={{this.transformedModel.title}} class={{this.transformedModel.titleCssClass}} + id="section-name" {{on "input" (action (mut this.transformedModel.title) value="target.value") @@ -31,30 +32,48 @@ {{/if}} {{/unless}} +