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

SearchBox: Unify suggestions and input design #854

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

Dlurak
Copy link
Collaborator

@Dlurak Dlurak commented Dec 23, 2024

Description

In #589 we agreed to make the suggestions transparent and add a gap to the input.

Screenshots

IMG_8936

Accessibility

I'm unsure about the contrast it is probably too low for the secondary/gray labels

Copy link

vercel bot commented Dec 23, 2024

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

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Jan 27, 2025 0:42am

@Dlurak
Copy link
Collaborator Author

Dlurak commented Dec 23, 2024

As we now have a custom component for the paper we can also show some content above the list. What do you think about adding some big buttons above the list to open features like "Current location", "Home", "School"/"Work" and "Last seen"?

I've tried it but it didn't look good:

Untitled

export const OptionsPaper = styled(Paper)<PaperProps>`
background-color: ${({ theme }) => theme.palette.background.searchInput};
-webkit-backdrop-filter: blur(35px);
backdrop-filter: blur(35px);
Copy link
Owner

@zbycz zbycz Dec 26, 2024

Choose a reason for hiding this comment

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

To consider: The custom component looks great on empty screen. Though i think, it shouldn't be transparent, when there is a sidebar open. Everything kinda melts together. Is it fixable?

image

@zbycz
Copy link
Owner

zbycz commented Dec 26, 2024

ad accessibilty) great point - lets discuss it in separate issue: #857

ad custom button on top) i created this issue #856

@Dlurak
Copy link
Collaborator Author

Dlurak commented Jan 24, 2025

  1. Is there some context to know if the side panel is opened, currently I just use the feature context.
  2. I'm not so sure about the not opaque colors I chose, what do you think about the colors, do you maybe have a better color suggestion @zbycz ?

@zbycz
Copy link
Owner

zbycz commented Jan 26, 2025

@Dlurak

  1. yes the featureContext is the proper place
  2. our color wizard is @jvaclavik - can you please look at it?

@jvaclavik
Copy link
Collaborator

I checked it in both light and dark mode and IMHO it's OK 👍

@Dlurak Dlurak merged commit cf35cb9 into zbycz:master Jan 27, 2025
2 checks passed
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