Skip to content

Commit 941127a

Browse files
ALLAIALLAI
authored andcommitted
feat: implement additional accessibility fixes for status bar, command center, and dialogs
1 parent 781b6da commit 941127a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/components/CommandCenter.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ export function CommandCenter() {
476476
{/* Input Field */}
477477
<Show when={isFocused() || isExpanded()}>
478478
<input
479+
aria-label="Search commands"
479480
ref={inputRef}
480481
type="text"
481482
value={query()}

src/components/cortex/EnhancedStatusBar.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,17 @@ export const EnhancedStatusBar: Component<EnhancedStatusBarProps> = (props) => {
115115
}}
116116
onClick={handleDiagnosticsClick}
117117
>
118-
<CortexIcon name="circle-xmark" size={12} />
118+
<CortexIcon name="circle-xmark" size={12} aria-hidden="true" />
119119
<span>{diagnosticCounts().error}</span>
120-
<CortexIcon name="triangle-exclamation" size={12} />
120+
<CortexIcon name="triangle-exclamation" size={12} aria-hidden="true" />
121121
<span>{diagnosticCounts().warning}</span>
122122
</div>
123123
</CortexTooltip>
124124

125125
<Show when={statusBar.branchName()}>
126126
<CortexTooltip content={`Git Branch: ${statusBar.branchName()}`} position="top">
127127
<div style={itemStyle} onClick={handleBranchClick}>
128-
<CortexIcon name="code-branch" size={12} />
128+
<CortexIcon name="code-branch" size={12} aria-hidden="true" />
129129
<span>{statusBar.branchName()}</span>
130130
<Show when={statusBar.hasChanges()}>
131131
<span style={{ color: "var(--cortex-warning)" }}>*</span>
@@ -144,7 +144,7 @@ export const EnhancedStatusBar: Component<EnhancedStatusBarProps> = (props) => {
144144
}}
145145
onClick={handleTrustClick}
146146
>
147-
<CortexIcon name="shield-exclamation" size={12} />
147+
<CortexIcon name="shield-exclamation" size={12} aria-hidden="true" />
148148
<span>Restricted</span>
149149
</div>
150150
</CortexTooltip>
@@ -226,7 +226,7 @@ export const EnhancedStatusBar: Component<EnhancedStatusBarProps> = (props) => {
226226
}}
227227
onClick={handleNotificationsClick}
228228
>
229-
<CortexIcon name="bell" size={14} />
229+
<CortexIcon name="bell" size={14} aria-hidden="true" />
230230
<Show when={statusBar.notificationCount() > 0}>
231231
<span
232232
style={{
@@ -281,7 +281,7 @@ const StatusBarItem: Component<StatusBarItemProps> = (props) => {
281281
aria-label={props.item.accessibilityLabel || props.item.tooltip}
282282
>
283283
<Show when={props.item.icon}>
284-
<CortexIcon name={props.item.icon!} size={12} />
284+
<CortexIcon name={props.item.icon!} size={12} aria-hidden="true" />
285285
</Show>
286286
<Show when={props.item.text}>
287287
<span>{props.item.text}</span>

0 commit comments

Comments
 (0)