-
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
[OSCI][BUG] Fixing bug in icon-only buttons for showing info tooltip when hovered #1160
[OSCI][BUG] Fixing bug in icon-only buttons for showing info tooltip when hovered #1160
Conversation
Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
… undefined in className instead of empty string) Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
I found a problem with the documentation page of the Is there any issue with this? Do you know what could be causing this? Also, I realized that for the case of the examples of many buttons (not group buttons), Regards, Samuel |
This seems to be a bigger issue. I did a little bit of digging and found that the docinfo isn't being generated for |
src/components/accessibility/__snapshots__/skip_link.test.tsx.snap
Outdated
Show resolved
Hide resolved
…t in buttonIcon and updating snapshots Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
Last updates requested are done. I added comments in a code review above so you can check the exact changes I made. I am still a bit confused about how to use snapshots. But I would bring that question to the following community office hours. Regards, Samuel |
Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
Revies asked are resolved. Could you check for proceeding with a merge? |
…when hovered (#1160) * fixing bug in icon-only buttons for showing info tooltip Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * Updating test snapshoots related to change in button_content.tsx Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * Updating chanelog.md regarding update in OuiButtonContent Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * updating button_content.tsx using recomendation of mantainer (include undefined in className instead of empty string) Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * updating test snapshoots for button_content.tsx Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * adding title prop to OuiIcon component, removing wrapping span element in buttonIcon and updating snapshots Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * refactoring code for buttonIcon variable to keep more concise definition Signed-off-by: Samuel Valdes Gutierrez <[email protected]> --------- Signed-off-by: Samuel Valdes Gutierrez <[email protected]> (cherry picked from commit 96af93e) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md
…tooltip when hovered (opensearch-project#1160)" This reverts commit 96af93e.
…when hovered (#1160) (#1206) * fixing bug in icon-only buttons for showing info tooltip Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * Updating test snapshoots related to change in button_content.tsx Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * Updating chanelog.md regarding update in OuiButtonContent Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * updating button_content.tsx using recomendation of mantainer (include undefined in className instead of empty string) Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * updating test snapshoots for button_content.tsx Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * adding title prop to OuiIcon component, removing wrapping span element in buttonIcon and updating snapshots Signed-off-by: Samuel Valdes Gutierrez <[email protected]> * refactoring code for buttonIcon variable to keep more concise definition Signed-off-by: Samuel Valdes Gutierrez <[email protected]> --------- Signed-off-by: Samuel Valdes Gutierrez <[email protected]> (cherry picked from commit 96af93e) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Icon-only buttons are not showing descriptive tooltip when hovered. This PR fixes the problem by adding wrapping a tag with
textProps
to a<buttonIcon/>
componentIssues Resolved
Issue #1129
Check List
yarn lint
yarn test-unit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.