-
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
feat(ui-breadcrumb,ui-tooltip): add tooltips for truncated breadcrumbs #1792
base: master
Are you sure you want to change the base?
Conversation
|
Closes: INSTUI-4371
8089b9c
to
f88ed28
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.
see my comments. Sadly NVDA behaves very differently from VoiceOver
* If true, it won't display the tooltip. This is useful in cases when tooltip is conditionally needed | ||
* but in an uncontrolled way | ||
*/ | ||
preventTooltip?: boolean |
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.
can you please write a test for this?
<TruncateText | ||
onUpdate={(isTruncated) => this.handleTruncation(isTruncated)} | ||
> | ||
<span aria-hidden={isTruncated}>{children}</span> |
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.
Saddly this is no good, NVDA ignores nodes that do not have text content or are set to aria-hidden
. So here is just read 'button'
isWithinText={false} | ||
elementRef={this.handleRef} | ||
> | ||
<TruncateText |
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.
wouldnt it be easier just to use here native text truncation?
Let me know if you finish going through the requested changes and I will review it. |
Closes: INSTUI-4371