Skip to content

Conversation

jeffdaley
Copy link
Contributor

Adds a basic TooltipIcon component and implements it on the RelatedResources component.

CleanShot 2023-07-20 at 10 05 49

@jeffdaley jeffdaley marked this pull request as ready for review July 20, 2023 14:09
@jeffdaley jeffdaley requested a review from a team as a code owner July 20, 2023 14:09
@@ -276,7 +276,7 @@
@allowAddingExternalLinks={{true}}
@headerTitle="Related resources"
@modalHeaderTitle="Add related resource"
@modalInputPlaceholder="Paste a URL or search documents..."
@modalInputPlaceholder="Search docs or paste a URL..."
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reversed the order to be consistent with the tooltip text.

@@ -283,7 +294,7 @@ export default class TooltipModifier extends Modifier<TooltipModifierSignature>
middleware: [
offset(8),
flip(),
shift(),
shift({ padding: 20 }),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prevents the tooltip from hitting the edge of the viewport by 20px.

@@ -163,6 +177,7 @@ module(
@headerTitle="Test title"
@modalHeaderTitle="Add related resource"
@modalInputPlaceholder="Paste a URL or search documents..."
@scrollContainer={{this.body}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines fix Glint errors in the test.

Copy link
Contributor

@anubhavmishra anubhavmishra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@jeffdaley jeffdaley merged commit 284e508 into main Jul 20, 2023
@jeffdaley jeffdaley deleted the jeffdaley/related-resources-tooltip branch July 20, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants