Skip to content

Commit

Permalink
fix(ui-color-picker): make ColorPicker tooltip VoiceOver focusable
Browse files Browse the repository at this point in the history
Closes: INSTUI-4259
  • Loading branch information
balzss committed Nov 22, 2024
1 parent 1209b0d commit 7ddbc9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/ui-color-picker/src/ColorPicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class ColorPicker extends Component<ColorPickerProps, ColorPickerState> {
<span css={styles?.label}>{label}</span>
<span>
<Tooltip renderTip={tooltip}>
<IconInfoLine tabIndex={-1} />
<IconInfoLine tabIndex={0} />
</Tooltip>
</span>
</span>
Expand Down
7 changes: 3 additions & 4 deletions packages/ui-svg-images/src/InlineSVG/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ class InlineSVG extends Component<InlineSVGProps> {
}

get labelledBy() {
const ids = []
const ids: string[] = []

if (this.props.title) {
ids.push(this.titleId)
ids.push(this.titleId as string)
}

if (this.props.description) {
ids.push(this.descId)
ids.push(this.descId as string)
}

return ids.length > 0 ? ids.join(' ') : undefined
Expand All @@ -150,7 +150,6 @@ class InlineSVG extends Component<InlineSVGProps> {
title,
description,
focusable,
children,
src,
styles,
...props
Expand Down

0 comments on commit 7ddbc9f

Please sign in to comment.