Components: Material FormField with Outline border styling issue on hover

Created on 6 Jul 2018  路  3Comments  路  Source: angular/components

feature request

Add Thick Border Color on hover as a styling option to FormField inputs

What is the expected behavior?

We should have the option to modify the color of the thick mouseover border, either through theme or direct styling. Defaulting to black is not ideal for many color palettes

What is the current behavior?

On mouseover of a FormField with appearance="outline" the border is thick solid black with no clear way to style it

What are the steps to reproduce?

  1. Navigate to https://material.angular.io/components/form-field/overview
  2. Scroll to "Form field appearance variants"
  3. Note that the example for appearance="outline" has a black mouseover border

What is the use-case or motivation for changing an existing behavior?

Styling and theming

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: Angular 5/6
Angular Material: 5/6 (current 6.3.2)
OS: Windows (not tested others)
Browsers: IE, Chrome

Is there anything else we should know?

image

P3

All 3 comments

I think this is working as intended, if you're using a dark theme it shows up as white. you can see this on the docs site by going to the theme chooser and picking one of the bottom two themes which are dark themes. You can read more about theming at https://material.angular.io/guide/theming

If it helps, I did it by adding the following code to the component scss file:
/deep/.mat-form-field-appearance-outline .mat-form-field-outline-thick { color: var(--app-priamry-color); }

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crutchcorn picture crutchcorn  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments

LoganDupont picture LoganDupont  路  3Comments

savaryt picture savaryt  路  3Comments

MurhafSousli picture MurhafSousli  路  3Comments