-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 support for inline, stack label in autocomplete #1994
Conversation
🦋 Changeset detectedLatest commit: 94cd787 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Ah @lindseywild sorry this is actively WIP and being committed on! Let me ping again when it's actually ready |
959588f
to
0e3cbeb
Compare
From @khiga in #1994 (comment):
Do these items imply this PR will also fix https://github.com/github/accessibility/issues/924? |
The As you make changes you can run
to recompile CSS and run
to run the doc site (http://localhost:8000/components/autocomplete) |
@smockle yes! let me update this issue description. |
c30a3f3
to
f61c13c
Compare
Update: it looks like the media query isn't being applied to the example (which makes sense), but all of the code is accurate. What do you think about removing the example for smaller screens and just make a note that it stacks on mobile? @khiga8 just a heads up, it looks like there is some jankiness in Firefox with the |
Hi @langermank, this is ready for another review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making those changes! I marked this as minor
because I don't think any of these are breaking changes. I tested out the changes to .autocomplete-results
in the current primer docs and it seems okay 🤞
Thank you @langermank! Could we get a Primer CSS version bump after this gets merged so we can continue our work on the Autocomplete PVC component? 🙏 |
Fixes: https://github.com/github/accessibility/issues/897, https://github.com/github/accessibility/issues/924
Design reference
What are you trying to accomplish?
We're making changes to the autocomplete API which includes changes to the markup and styles.
In order to support the styles recommended by @alliethu in Design reference, we must make some CSS changes.
We want to support:
We should make sure:
This introduces the following new classes:
autocomplete-body
to wrap the input field and results for correct positioningautocomplete-label-stacked
to support stacked label positionautocomplete-label-inline
to support inline label position (which switches to stacking on smaller viewport)autocomplete-embedded-icon
to support an embedded icon in the input fieldWhat should reviewers focus on?
When this is ready for review, let's get @alliethu eyes on the Preview.
Are additional changes needed?