fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

ComboBox: Fluent theme

Open mikewheaton opened this issue 8 years ago • 7 comments

Add styles to the Fluent theme for ComboBox.

mikewheaton avatar Oct 18 '18 19:10 mikewheaton

Looks like @Vitalius1 already made the style updates here and it's ready for design review.

mikewheaton avatar Nov 06 '18 22:11 mikewheaton

This looks good.

betrue-final-final avatar Nov 06 '18 23:11 betrue-final-final

@betrue-final-final @mikewheaton and I were just looking at ComboBox and it looks like it's not fluentized completely. We are pulling it from done and throw back on building column.

Vitalius1 avatar Nov 07 '18 21:11 Vitalius1

@betrue-final-final

  1. ComboBox does not have a way to know where it renders the callout, on top or below the input, so I rounded all 4 corners for now. Let me know if we want something different.
  2. I noticed an issue with the shadow on ComboBox and Dropdown. If the callout is on top of the input, because the fluent shadow it's bigger at the bottom edge of the callout, you can see how it overlaps on the input. Don't know if this is an issue or not... let me know if this needs to be addressed for all of them in some way.
  3. Also, notice how the chevron button on the ComboBox has it's own hover/active background states which is not present in the dropdown. Do we need to change either of them to be consistent?

Vitalius1 avatar Nov 09 '18 03:11 Vitalius1

Issue 1 and 3 are fine. Combobox intentionally has a hover state on the chevron button on its own because the text part is an edit field. I will look at #2.

betrue-final-final avatar Nov 15 '18 05:11 betrue-final-final

This looks fine.

betrue-final-final avatar Nov 15 '18 17:11 betrue-final-final

Fluent Updates

  • Just a friendly reminder that per our conversation, I've done the code comparison off of the Dropdown toolkit

Code diff Issues

-Text color in "-Focus" and "-Pressed" state: Live = 323103 / TK = 201F1E -Border color in "-Focus" state: Live = 0078d4 / TK = A19F9D -Border color in "-Hover" state: Live = 000000 / TK = 0078d4 -Border color in "-Open" state: Live = 0078d4 / TK = a19f9d -Error message font size in "-Error" state: Live = 14px / TK = 12px -Callout menu header font size Live = 14px / TK = 12px -Callout menu box-shadow Live = elevation16 / TK = elevation8 -Checkbox list item background in "-Hover" state Live = f3f2f1 / TK = white -Checkbox list item text color in "-Pressed/Selected" and "-Selected Hover" state Live = 323130 / TK = 201f1e -CommandButton list item text color in "-Focus" state Live = black / TK = 323130 -CommandButton list item text color in "-Selected" state Live = black / TK = 201f1e

-IconButton menu button: Should I be comparing against the menu button in the Dropdowns and Text Fields > Dropdown toolkit or the Buttons > Icon Dropdown toolkit? You address the differences Vitalie found above and said it wasn't a problem but I thought i'd still put it down incase that stance has changed.

Toolkit Issues

-Border color in "Standard" and "Standard with label" variants is listed as pure black and is this supposed to be 323130? (location = Basic Inputs > Dropdowns and Text Fields > Dropdown) -Error message color in "-Error" state: Live = a4262c / TK = a8000 (a4262c is defined in FluentColors as red20 and is set to override palette.redDark in FluentTheme) -Error border color in "-Error" state: Live = a426c / TK = c50f1f ( same reason as the above error message issue) -Chevron icon color in "-Error" state: Live = 605e5c / TK = a19f9d (since the menu is still usable in Error state I'm assuming the chevron taking on the disabled color, a19f9d is a TK mistake)

@betrue-final-final please let me know which of these changes are required

maxwellred avatar Jul 01 '19 22:07 maxwellred