Polymer 1.0 How can I create paper input: disconnected?

Polymer 1.0 question:

When the paper input is set to “off,” the text and underline turn into a really light gray that is difficult to read. How to set text color using css. Here is what I have tried so far:

--paper-input-container-input-disabled {
    color:black;
}

<paper-input label="Email" disabled></paper-input>

But it does not change the color of the text. Although I can change the background color using the same mixin.

+4
source share
1 answer

The online document has an invalid name. It should be --paper-input-container-disabled. So this will work -

paper-input {
  --paper-input-container-disabled: {
    opacity: 0.66;
  };
} 

, opacity 0.33. , , , .

+9

Source: https://habr.com/ru/post/1610336/


All Articles