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

input_pill: Redesign input pills. #30121

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

Conversation

evykassirer
Copy link
Collaborator

@evykassirer evykassirer commented May 17, 2024

From these designs: https://www.figma.com/design/jbNOiBWvbtLuHaiTj4CW0G/Zulip-Web-App?node-id=7623%3A34026&t=6beCgEvgN2uhee7P-1

This differentiates user pills and non-user input pills by color, and also replaces the close button with an svg. This is part of the app redesign, and preparation for the upcoming search pill project.

The stream settings menu and user invite modal could probably use some tweaks to get the background contrast cleaner.

I think those are the only two places we use pills other than the DM compose box. Did I miss any? I can also do another more thorough check if there's not someone that just knows the answer off the top of their head.

compose box image image
stream settings, add subscribers image image
invite users modal image image
selecting pills image image image image image image
hovering over close button image image image image

@evykassirer
Copy link
Collaborator Author

evykassirer commented May 19, 2024

This most recent push has these visual changes:

  • the square when hovering the X button has rounded corners, which I missed before
image
  • The search suggestion pills now have no border. I'm not sure if this is what Vlad wanted, so I followed up on CZO

image

@evykassirer
Copy link
Collaborator Author

Most recent push involves these changes

@alya
Copy link
Contributor

alya commented May 21, 2024

I think the search typeahead should have yellow user pills to be consistent, right? I'll post in #design.

@alya
Copy link
Contributor

alya commented May 21, 2024

There are other places where you can input user pills:

  • group settings (parallel UI to stream settings)
  • user custom profile field ("Mentor" in dev)

(I think these look fine; just listing them for reference.)

This style is currently only used for search suggestions. Soon,
styling for those suggestions will become more specific, and so
for now we'll keep those styles in search.css to be more clear
about what the new styles affect. If we want to repeat something
like this in the future somewhere else in the app, we can come
up with a generic styling then once we have a better idea of
what that will look like.
This differentiates user pills and non-user input
pills by color, and also replaces the close button
with an svg. This is part of the app redesign, and
preparation for the upcoming search pill project.
@evykassirer
Copy link
Collaborator Author

Most recent push has user pills for search suggestions

image

image

And also has a 5% transparent black outline around all yellow user pills in light mode. I've asked on CZO if we want outlines for all pills, and specifically how to differentiate the blue pills from dark backgrounds in dark mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants