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

<VirtualFocus /> component #2894

Open
wants to merge 73 commits into
base: main
Choose a base branch
from
Open

<VirtualFocus /> component #2894

wants to merge 73 commits into from

Conversation

JulianNymark
Copy link
Contributor

@JulianNymark JulianNymark commented May 2, 2024

internal tooling (for now)

Copy link

changeset-bot bot commented May 2, 2024

⚠️ No Changeset found

Latest commit: 4201a26

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented May 2, 2024

Storybook demo

Endringer til review: 4

003cc70a7 | 85 komponenter | 163 stories

@JulianNymark
Copy link
Contributor Author

Merker at et mye bedre navn på en slik prop er autocomplete 🤔

@JulianNymark JulianNymark self-assigned this May 7, 2024
show how easy it is to add icons / do something more complicated inside
the autocomplete suggestions list alongside a <Search>
- fairly nicely working list of virtually focusable items
- API interface kept simple (moved pick to Anchor though, single "exit
  point")
- item has focus function now, which triggers when it gets virtual
  focus, the API should not distinguish between virtual and real focus
  was the thinking here, it's more an implementation detail.
- showcase dropdown search autocomplete
@JulianNymark JulianNymark marked this pull request as ready for review May 27, 2024 07:47
@JulianNymark JulianNymark changed the title 🚧 WIP search dropdown prop API Autocomplete component May 27, 2024
@JulianNymark
Copy link
Contributor Author

JulianNymark commented Jun 17, 2024

check out the cool branch virtualfocus-combobox-test to see how it could look when using this component (as of this writing) with <Combobox /> 👀 ⭐ 🚀 (if it looks bad, we can change this API completely / add more defaults)

@JulianNymark
Copy link
Contributor Author

There are some changes I want to backport from the test branch, will bring them here & remove them from the test branch.

KenAJoh
KenAJoh previously approved these changes Jun 19, 2024
Copy link
Collaborator

@KenAJoh KenAJoh left a comment

Choose a reason for hiding this comment

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

Since this isn't an actual form-component, there might be a more fitting location for the code than under /form

@JulianNymark
Copy link
Contributor Author

Since this isn't an actual form-component, there might be a more fitting location for the code than under /form

true, holdover from when it started as a prop on <Search />

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.

None yet

2 participants