fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Hard to override inner styles of TextField

Open YusongLiu opened this issue 9 years ago • 2 comments

Previously we could use inputClassName to override the inner style of TextField.

Now we added fieldGroup div between the outer div and inner input: <div className={ css(styles.fieldGroup, isFocused && styles.fieldGroupIsFocused) }>

It becomes not elegant to override styles like border for TextField.

YusongLiu avatar May 10 '17 09:05 YusongLiu

@YusongLiu can you provide an example where you want to override the styles? I want to make absolutely sure we understand the exact use case before committing to a design improvement.

Recently we added a borderless flag to turn off borders. This would be a better approach rather than reaching into sub elements and styling them individually.

dzearing avatar May 11 '17 17:05 dzearing

Oh great! Currently I am trying to override the border which could be done with borderless. No issue now.

YusongLiu avatar May 12 '17 03:05 YusongLiu