How do you style the <paper-input>
tag in Polymer 1.0
Can you show how to specifically custom style the label text color, the underline color, input text color, and how to access them using custom-style
?
How do you style the <paper-input>
tag in Polymer 1.0
Can you show how to specifically custom style the label text color, the underline color, input text color, and how to access them using custom-style
?
You can change the appearance of
<paper-input>
by changing the custom properties listed over here (The information has been moved for the most recent version - it is available for versions older than v1.1.21).Here's an example:
EDIT:
The
:root
selector is used to define custom properties that apply to all custom elements. You can also target a specific element instead of:root
: