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: Refactor pills to eliminate fixed positioning of elements. #9941
Conversation
It looks like the "X" got considerably smaller? Otherwise lgtm, though I think it might be worth adding to this PR the change that @armaanahluwalia suggested of increasing the whitespace between two pills by a few pixels (not sure how many is best). |
Awesome work here with the CSS cleanup. Basically i think the second pill should be positioned where the blinking cursor is once the first pill is in place. |
@synicalsyntax We're talking about number 2 in the picture ( Essentially adding a few pixels to the right margin of each pill. My guess is you could gauge how much space to add by making a second pill begin where the cursor blinks to the right of the first pill ). Tim is also saying he feels the 'x' icon somehow is smaller than the current version. Maybe you could confirm. |
@synicalsyntax How come one x looks bigger than the other? |
@armaanahluwalia I was comparing the original size with the new icon size. Here's the current one on this PR: |
Looks good to me. Maybe 1px or 2px more on the margin-right of the pill thats all. |
You're right. IMO the container in night mode is not necessary in this case. We could just add background transparent to it so it disappears just like its not visible in normal mode. |
Going to wait for feedback from @timabbott before I make any more changes. Current status: |
I'm happy with the between-pills spacing there. It looks like we lost a bit of padding around the name in the pills which makes them feel a bit cramped; can you add a bit there to better match what's currently on chat.zulip.org? |
<div class='exit'> | ||
× | ||
<span class="pill-value">{{ display_value }}</span> | ||
<div class="exit" aria-label="{{t Remove pill }}"> |
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.
The aria-label
here is invalid -- the string should be quoted. But I also don't think we really need the aria-label
here; this isn't a widget you would want to interact with as a blind user (instead, you just hit backspace to get rid of it, I think?).
I removed the broken |
Removes fixed positioning from pills so that their alignment and positioning won't break at different zoom sizes.