Skip to content

Fix vertical alignment for quick-input count - #96772

Closed
Ladislau Szomoru (lszomoru) wants to merge 2 commits into
masterfrom
lszomoru/guick-pick-alignment
Closed

Ladislau Szomoru (lszomoru) wants to merge 2 commits into
masterfrom
lszomoru/guick-pick-alignment

Conversation

@lszomoru

@lszomoru Ladislau Szomoru (lszomoru) commented May 1, 2020 •

Copy link
Copy Markdown
Member

This PR fixes #89049

Since the pill itself has an explicit line-height: 11px we need to sent the same line-height for the container element so that the container element has the same heigh (11px) as the pill. Below is a screenshot of the quick-pick dialog with the proposed change.

image

@chrmarti

Copy link
Copy Markdown
Collaborator

Ladislau Szomoru (@lszomoru) I was aligning text baselines previously. Note how the pill's text is now a little off compared to the OK text. Should all text move one pixel up to preserve that?

@lszomoru

Copy link
Copy Markdown
Member Author

Christof Marti (@chrmarti), I see what you mean.
I think that is a problem with the OK string alignment rather than the pill. Let me see if I can fix the OK string.

@lszomoru

Copy link
Copy Markdown
Member Author

Christof Marti (@chrmarti), I have updated the PR. Here is a screenshot containing both changes:

image

@chrmarti

Copy link
Copy Markdown
Collaborator

I wonder if the baseline of the text/placeholder in the input field should still align with the badge's and button's text baseline. Like currently:
image

@misolori Do you have a recommendation?

@miguelsolorio

Copy link
Copy Markdown
Contributor

I think I may have already fixed this with the updated pill design PR #97104 (comment)

@lszomoru

Copy link
Copy Markdown
Member Author

@misolori sweet. I will close this PR.

@github-actions github-actions Bot locked and limited conversation to collaborators Jun 22, 2020
@lszomoru
Ladislau Szomoru (lszomoru) deleted the lszomoru/guick-pick-alignment branch June 29, 2020 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alignment issues with quick pick

3 participants