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

Refine TextArea UX, overall header styling. #346

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

mathewjordan
Copy link
Member

@mathewjordan mathewjordan commented Jun 26, 2024

This work refines the Search component and textarea UX. Now when a user begins to type, the <textarea> element will grow in by calculating the scrollHeight of the element and applying this height as a style. If the user unfocuses, the height should transition back to the default height (appx 50px) with a text-overflow rendering an ellipsis for overflowing textual content.

To make this blend well with our current layout, I opted to simplify the background colors, making the previous background of purple now transparent and showing white. This should elevate the actionable elements in the header to the foreground.

Along with this, I also made some other stylistic updates regarding overall legibility of text in the html document, sharpening and modernizing things. Along with this, I also updated the styling of the AI Response / View n Results tab.

image

Other Notes

  • I needed to refine some Search components tests after making modifications. Mainily, I removed the need for us to know isSearchActive on the Generative AI toggle which was only used for margins. These updates should simplify things there.

  • I needed to mock the ResizeObserver as Radix was screaming about this for some reason (see jest.setup)

@mathewjordan mathewjordan changed the title 5045 textarea ux Refine TextArea UX, overall header styling. Jun 26, 2024
@mathewjordan mathewjordan self-assigned this Jun 26, 2024
@mathewjordan mathewjordan marked this pull request as ready for review June 26, 2024 20:10
Copy link
Contributor

@adamjarling adamjarling left a comment

Choose a reason for hiding this comment

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

Great work here, looks so much better, cleaner. 👍

@mathewjordan mathewjordan merged commit c8716c8 into preview/chat-integration Jun 26, 2024
1 check passed
@mathewjordan mathewjordan deleted the 5045-textarea-ux branch June 26, 2024 21:44
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