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

DSD-1719/adds container queries to searchbar #1589

Draft
wants to merge 5 commits into
base: container-query-feature-branch
Choose a base branch
from

Conversation

oliviawongnyc
Copy link
Collaborator

@oliviawongnyc oliviawongnyc commented May 2, 2024

Fixes JIRA ticket DSD-1719

This PR does the following:

  • Another test PR, this time to see how container queries could be used in SearchBar, not meant to be merged

Checklist:

  • I have updated the Storybook documentation accordingly.
  • I have added relevant accessibility documentation for this pull request.
  • All new and existing tests passed.

Front End Review:

  • Review the Vercel preview deployment once it is ready.

@oliviawongnyc oliviawongnyc requested a review from EdwinGuzman May 2, 2024 20:14
Copy link

vercel bot commented May 2, 2024

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

Name Status Preview Comments Updated (UTC)
nypl-design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2024 2:38pm

Copy link

github-actions bot commented May 2, 2024

Your pull request is missing a changelog—was that intentional?

@@ -217,6 +217,7 @@ export const SearchBar: React.FC<any> = chakra(
invalidText={invalidText}
isInvalid={isInvalid}
ref={ref}
sx={{ containerType: "inline-size" }}
Copy link
Member

Choose a reason for hiding this comment

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

It seems to me that container queries are so new that Chakra does not support them as style props. Is that true?

This doesn't have to be part of this ticket but we should update all components so that devs can do <Component wrapper containerType="inline-size" ...>. It might mean having a global base interface with the container query attributes and all component interfaces inherit from it. Maybe? This is a nice-to-have update.

@jackiequach jackiequach changed the base branch from development to container-query-feature-branch September 25, 2024 17:43
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.

3 participants