-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui-color-picker): make ColorPicker tooltip VoiceOver focusable #1771
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ffb712f
to
c435fb6
Compare
d80a37b
to
b8650f4
Compare
b8650f4
to
7ddbc9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think this is a good solution. NVDA does not read the tooltip. Also its wonky on VO too, when I move the SR focus it does not read it, but after I've tabbed trough it, it will read it
I think its because the svg
icon is set to aria-hidden
which is a no for focusable elements https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-hidden#description , so NVDA just removes is from the SR DOM
7ddbc9f
to
b986504
Compare
@matyasf can you please check it again? now it also reads the tooltip when the input is focused but I don't think we can prevent that. I think it always reads the label when an input gets focused... also fyi: it has a ts error that's probably introduced from this pr so a temporary ts-ignore was added |
@@ -150,7 +150,6 @@ class InlineSVG extends Component<InlineSVGProps> { | |||
title, | |||
description, | |||
focusable, | |||
children, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work!
theme={{ | ||
themeOverrides: { | ||
componentOverrides: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not knew that this is a valid syntax... easier one would be
theme={{
componentOverrides: {
BaseButton: {
smallHeight: 'auto'
}
}
}}
b986504
to
6e529af
Compare
Closes: INSTUI-4259
6e529af
to
a38ddad
Compare
Closes: INSTUI-4259
test plan: