Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Floating Label style not adjustable when input focused #28

@jeffreychan637

Description

@jeffreychan637

In the paper-input-decorator, it is necessary to include the following lines in my CSS file to get the color of the floating label to change when the input field is focused.

paper-input-decorator[focused] /deep/ .floating-label,
paper-input-decorator[focused] /deep/ .label-text {
  /* floating label color when the input is focused */
  color: orange !important;
}

when based on the documentation, this should be sufficient:

paper-input-decorator[focused] /deep/ .floating-label .label-text {
    /* floating label color when the input is focused */
    color: orange;
}

Also, surprisingly, the important flag on it's own doesn't work:

paper-input-decorator[focused] /deep/ .floating-label .label-text {
    /* floating label color when the input is focused */
    color: orange !important;
}

It's necessary to actually retype "paper-input-decorator[foc..." again to get it to work. That in itself may be a whole other bug.

Based on my attempts to figure this out, it looks like the style set by the host overrides everything causing the second and third pieces of code above to not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions