From 6f1ad354928738f8e6c728bb6f63224127d0d58c Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Wed, 8 Jul 2026 23:35:45 -0500 Subject: [PATCH] add aria labels to items --- client/components/dropdown/dropdown.jsx | 2 ++ client/homebrew/editor/snippetbar/snippetbar.jsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/components/dropdown/dropdown.jsx b/client/components/dropdown/dropdown.jsx index b074f7b49..b6ea37d13 100644 --- a/client/components/dropdown/dropdown.jsx +++ b/client/components/dropdown/dropdown.jsx @@ -98,6 +98,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c className={['menu-item', color].join(' ')} popoverTarget={menuId} aria-haspopup='menu' + aria-label={groupName} role='menuitem' disabled={!React.Children.count(children)} ref={triggerRef} @@ -111,6 +112,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c className='menu-list' popover='auto' role='menu' + aria-label={`${groupName} Submenu`} onClick={handleMenuActionClick} > {children} diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index fad692193..255bea3fa 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -188,7 +188,7 @@ const Snippetbar = createReactClass({ const snippets = this.state.snippets.filter((snippetGroup)=>snippetGroup.view === this.props.view); if(snippets.length === 0) return null; - return