From bd16f4f9bf46e2b276c636fd09985a0674f6a521 Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Wed, 18 Jun 2025 16:29:04 -0400 Subject: [PATCH] [MM-62989][MM-63039][MM-63033][MM-64174][MM-63040][MM-63032][MM-63001][MM-63006][MM-63037] Various accessibility fixes for the Create Channel modal (#30888) * [MM-62989] Replace channel purpose input with Input component * [MM-63039] Fix styles so that a11y--focused box shadow is applied to the private/public channel buttons * [MM-63033] Add aria-describedby and role=alert to the URL input on create channel modal * Fix lint * [MM-63035] Change legend to label, fieldset to div in the Input component * Fix i18n * [MM-64174] Stop propagation of enter event while editing the new channel * [MM-63037] Add role=img and an aria label to the error img icon * Fix snap * Revert "[MM-63035] Change legend to label, fieldset to div in the Input component" This reverts commit e8516f3e6a266c77db2b1695a036db717041a9ef. * [MM-63040] Remove tabindex=0 from GenericModal wrapper, fix issue with URLInput that I caused D: * Fix snap --------- Co-authored-by: Mattermost Build --- .../channel_notifications_modal.test.tsx.snap | 6 ---- .../new_channel_modal/new_channel_modal.scss | 28 ++++--------------- .../new_channel_modal.test.tsx | 6 ++-- .../new_channel_modal/new_channel_modal.tsx | 15 ++++++---- .../marketplace_modal.test.tsx.snap | 7 ----- .../start_trial_form_modal.test.tsx.snap | 1 + .../components/widgets/inputs/input/input.tsx | 7 +++-- .../widgets/inputs/url_input/url_input.tsx | 15 ++++++++-- .../public-private-selector.scss | 10 ++++--- webapp/channels/src/i18n/en.json | 1 + .../__snapshots__/generic_modal.test.tsx.snap | 1 - .../src/generic_modal/generic_modal.tsx | 2 -- 12 files changed, 43 insertions(+), 56 deletions(-) diff --git a/webapp/channels/src/components/channel_notifications_modal/__snapshots__/channel_notifications_modal.test.tsx.snap b/webapp/channels/src/components/channel_notifications_modal/__snapshots__/channel_notifications_modal.test.tsx.snap index 52be61daae..c8635b16c0 100644 --- a/webapp/channels/src/components/channel_notifications_modal/__snapshots__/channel_notifications_modal.test.tsx.snap +++ b/webapp/channels/src/components/channel_notifications_modal/__snapshots__/channel_notifications_modal.test.tsx.snap @@ -35,7 +35,6 @@ Object { >