components icon indicating copy to clipboard operation
components copied to clipboard

[feature request] md-input focus class

Open sonderbazz opened this issue 10 years ago • 3 comments

Bug, feature request, or proposal:

Focus on md-input-element sets the md-focused class on md-input

What is the expected behavior?

I would like to be able to style on all sub elements within the md-input when the input has focus.

What is the current behavior?

Only ripple and placeholder gets a md-focused class added

What are the steps to reproduce?

Set focus on a md-input element check to see if its possible to style all subelements to md-input

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

Would give more flexibility to modding the design

sonderbazz avatar Aug 30 '16 11:08 sonderbazz

There's a perfectly correct version by doing something like this:

<md-input #example [class.my-custom-focus]="example.focused">

We do not want to export special classes only for the purpose of styling like this. If you need styling for a component you should apply your own custom classes to it.

Thanks!

hansl avatar Oct 31 '16 23:10 hansl

Fair enough - and thanks for the simple solution. :)

sonderbazz avatar Nov 01 '16 06:11 sonderbazz

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.