-
Notifications
You must be signed in to change notification settings - Fork 764
Update ComboBox dropdown button margin #1183
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
Conversation
Do you have a screenshot of what the fix looks like? Before/after would be helpful. :) |
Yeah, just included it in PR description. |
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. 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 :) |
@kaiguo Will the 2px focused border be above or below the button's hover state background? |
@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... |
I think it's above |
Good, then it should look correct, and you wont get any darkening of the border :) |
Can you attach images of the keyboard focus state too? (Normal and PointerOver states) |
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 :) |
Yeah put them in PR description too |
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:

After fix (with rounded corners turned on):
