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

add hover function + disclaimer css #4687

Merged
merged 8 commits into from
Jan 8, 2024
Merged

add hover function + disclaimer css #4687

merged 8 commits into from
Jan 8, 2024

Conversation

mirnawong1
Copy link
Contributor

@mirnawong1 mirnawong1 commented Dec 21, 2023

this pr adds the hover functionality and disclaimer css to the existing faq component. this is because our detailsToggle component has a hover functionality and i think we should have consistent behavior for users.

this PR also removes the underline under the 'hover to view' string.

@mirnawong1 mirnawong1 requested a review from a team as a code owner December 21, 2023 15:34
Copy link

vercel bot commented Dec 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2024 9:50am

@github-actions github-actions bot added size: medium This change will take up to a week to address Docs team Authored by the Docs team @dbt Labs labels Dec 21, 2023
@nghi-ly
Copy link
Contributor

nghi-ly commented Jan 3, 2024

hey @mirnawong1 ! i really like this and appreciate the consistency across the faqs.

for a little more polish 💅 , is it possible to have the text "Hover to view" not be underlined since that's not actually part of the faq content (it's just a helper note) ?

@mirnawong1
Copy link
Contributor Author

thanks @nghi-ly and that's a good suggestion! I'll look into to removing the underline so the distinction is clearer 🙌

@mirnawong1
Copy link
Contributor Author

mirnawong1 commented Jan 3, 2024

update: i've removed the underline from the 'hover to view' for both the faq and detailsToggle components.

@@ -40,7 +40,7 @@ useEffect(() => {
onMouseLeave={handleMouseLeave}
>
<span className={`${styles.toggle} ${isOn ? null : styles.toggleUpsideDown}`}></span>&nbsp;
<span>{alt_header}</span>
<span className={styles.headerText}>{alt_header}</span>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

adding span to separate alt_header and .disclaimer CSS and assign underline class to alt_header only.

Copy link
Collaborator

@JKarlavige JKarlavige left a comment

Choose a reason for hiding this comment

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

all lgtm! verified faqs opening on hover, while still being able to click to open the faqs. Great work @mirnawong1! :shipit:

@mirnawong1 mirnawong1 enabled auto-merge January 8, 2024 09:44
@mirnawong1
Copy link
Contributor Author

thanks so much for the review @JKarlavige!

@mirnawong1 mirnawong1 merged commit 465cf8f into current Jan 8, 2024
7 checks passed
@mirnawong1 mirnawong1 deleted the mwong-add-hover branch January 8, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs team Authored by the Docs team @dbt Labs January-2024 size: medium This change will take up to a week to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants