Skip to content

Conversation

kaiguo
Copy link
Contributor

@kaiguo kaiguo commented Aug 20, 2019

We updated ComboBox border thickness to 1px but dropdown button margin is still 2px, so there is gap around the button. Updated margin to 1 to fix it.

Before:
image

After fix (with rounded corners turned on):
{9BBE1976-9C15-43ED-9238-C932BCE1A62B}

{81DFE3A0-7BEC-4019-A745-E1C2F3D63349}
{1BCF1975-05CD-408B-A8B0-7E6A983CB8AE}

@kaiguo kaiguo requested review from savatia and jevansaks August 20, 2019 18:44
@kaiguo kaiguo requested a review from a team as a code owner August 20, 2019 18:44
@jevansaks
Copy link
Member

Do you have a screenshot of what the fix looks like? Before/after would be helpful. :)

@kaiguo
Copy link
Contributor Author

kaiguo commented Aug 20, 2019

Do you have a screenshot of what the fix looks like? Before/after would be helpful. :)

Yeah, just included it in PR description.

@jevansaks
Copy link
Member

The margins on the ContentPresenter seem a bit uneven. Do the comps show what the padding on the right of the text should be for the minimum width?

@kaiguo
Copy link
Contributor Author

kaiguo commented Aug 20, 2019

The margins on the ContentPresenter seem a bit uneven. Do the comps show what the padding on the right of the text should be for the minimum width?

I didn't find the original ComboBox comp but the dropdown button background is transparent in rest state, so I think we are centering the TextBox in rest state.

image

Looks like there might be a few px off in the rest state too, I think that's been there from the beginning, should I fix that?

NuGet 2.1.190606001:
{633ADD78-FE9B-48E4-ADBD-F36260E692E2}

@jevansaks
Copy link
Member

Looks like there might be a few px off in the rest state too, I think that's been there from the beginning, should I fix that?

I don't know, I defer to @chigy :)

@mdtauk
Copy link
Contributor

mdtauk commented Aug 20, 2019

@kaiguo Will the 2px focused border be above or below the button's hover state background?

@chigy
Copy link
Member

chigy commented Aug 20, 2019

@kaiguo , Can you point out the pixel that is off? Is it the hover button that seems to have the drop down icon a bit off to the right? It is most likely due to the minimum size but I wanted to make sure I am answering it correctly...

@kaiguo
Copy link
Contributor Author

kaiguo commented Aug 20, 2019

@kaiguo Kai Guo FTE Will the 2px focused border be above or below the button's hover state background?

I think it's above

@mdtauk
Copy link
Contributor

mdtauk commented Aug 20, 2019

@kaiguo Kai Guo FTE Will the 2px focused border be above or below the button's hover state background?

I think it's above

Good, then it should look correct, and you wont get any darkening of the border :)

@jevansaks
Copy link
Member

@kaiguo Kai Guo FTE Will the 2px focused border be above or below the button's hover state background?

I think it's above

Can you attach images of the keyboard focus state too? (Normal and PointerOver states)

@kaiguo
Copy link
Contributor Author

kaiguo commented Aug 20, 2019

@kaiguo , Can you point out the pixel that is off? Is it the hover button that seems to have the drop down icon a bit off to the right? It is most likely due to the minimum size but I wanted to make sure I am answering it correctly...

Inked{633ADD78-FE9B-48E4-ADBD-F36260E692E2}_LI

Yeah I had an illusion that those margins were different, but I've look at the numbers, they are the same, so I think we are good :)

@kaiguo kaiguo changed the title Update dropdown button margin Update ComboBox dropdown button margin Aug 20, 2019
@kaiguo
Copy link
Contributor Author

kaiguo commented Aug 20, 2019

Can you attach images of the keyboard focus state too? (Normal and PointerOver states)

Yeah put them in PR description too

@kaiguo kaiguo merged commit 100164f into master Aug 29, 2019
@kaiguo kaiguo deleted the user/kaiguo/fix-combobox-dropdown-margin branch August 29, 2019 18:29
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.

4 participants