-
Notifications
You must be signed in to change notification settings - Fork 73
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
Hover over the filter is not showing text in vertical bar visualization in OpenSearch dashboards #1129
Comments
Thanks @tejashu7! |
Hi, Any updates on this issue? Thanks, |
I took a bit of a look and it turns out this is actually an issue in the underlying OUI component, The problem is with the implementation of the |
May I take a look at this issue? Feeling is something straightforward or not? Regards, Samuel |
Yep, @BigSamu , I think this would be a good issue for you to do a little more investigation on. We'll still need Kevin to provide some guidance on the intended behavior, but you can dig into the implementation of the |
@joshuarrrr + @BigSamu -- For accessibility (and usability) reasons, if the form element doesn't have a label (which looks like button groups probably wouldn't), then a tooltip (https://oui.opensearch.org/1.3/#/display/tooltip) should display that information. |
Great! Thanks @joshuarrrr !
Perfect, thanks @kgcreative, I will start working on this issue next week. Now much more familiarized with the whole OUI base code. |
It took me a while to understand the whole implementation of both codes (osd and oui) to understand the problem. But at last, here I have a simple solution. In OUI library, in return (
<span {...contentProps} className={contentClassNames}>
<span {...textProps} className="" >{buttonIcon} </span>
<span {...textProps}>{children}</span>
</span>
); Instead of, return (
<span {...contentProps} className={contentClassNames}>
{buttonIcon}
<span {...textProps}>{children}</span>
</span>
); The dictionary {className: 'ouiButton__text ouiButtonGroupButton__textShift', data-text: 'Option three', title: 'Option three', ref: ƒ} By adding, Below is a screenshot applying this small change in the code of the OUI documentation. Looking forward to your comments. Samuel |
@BigSamu I think that makes sense - we may need to validate that duplicating the props don't cause any side effects, but go ahead and open a PR, and we can go from there. |
Hi @joshuarrrr @kgcreative, PR #1160 is already open for your review. Looking forward to your comments. |
I will take #1207 to continue enhancing this feature |
Description:
Hover over the filter is not showing text in vertical bar visualization in OpenSearch dashboars.
Steps to reproduce the behavior:
Expected behavior
A text descipbing the filter out value should be shown when hovered over the "+" sign.
OpenSearch Version
OpenSearch 2.6.0
Dashboards Version
OpenSearch Dashboard version is 2.6.0
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Please find the forum link for further details:
https://forum.opensearch.org/t/hover-over-filter-in-vertical-bar-in-opensearch-dashboards-not-showing-text/14124
The text was updated successfully, but these errors were encountered: