Skip to content
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

🪟 🎨 Do not render InfoToolTip if there is not content to render #17276

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

lmossman
Copy link
Contributor

What

As evidenced by this slack thread, it is confusing for users if we render an ⓘ InfoToolTip for a field, and that tooltip doesn't actually have any content to display.

How

This PR makes the UX slightly less confusing by just not rendering the info tooltip if there is no content to render. Example screenshot of the same connector with these changes, showing that the info tooltip is no longer rendered:
Screen Shot 2022-09-27 at 12 18 39 PM

This PR also slightly refactors the LabelInfo component so that the styling is better in cases where there are examples but no descriptions to display, e.g.
image

@github-actions github-actions bot added area/platform issues related to the platform area/frontend Related to the Airbyte webapp labels Sep 27, 2022
@lmossman lmossman marked this pull request as ready for review September 27, 2022 19:22
@lmossman lmossman requested a review from a team as a code owner September 27, 2022 19:22
Copy link
Collaborator

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Tested locally in Snowflake Source. Looks good. Code LGTM

@lmossman lmossman merged commit 9aacbac into master Sep 27, 2022
@lmossman lmossman deleted the lmossman/dont-render-info-tooltip-if-no-description branch September 27, 2022 20:28
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
…ytehq#17276)

* do not render InfoToolTip if there is not content to render

* remove px
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
…ytehq#17276)

* do not render InfoToolTip if there is not content to render

* remove px
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend Related to the Airbyte webapp area/platform issues related to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants