Можете ли вы показать, как специально настроить стиль текста текста, цвет подчеркивания, цвет текста ввода и как получить доступ к ним с помощью custom-style?
Ответ 1
Вы можете изменить внешний вид <paper-input>, изменив пользовательские свойства, перечисленные выше здесь (информация была перенесена для самой последней версии - он доступен для версий старше v1.1.21).
Вот пример:
<style is="custom-style">
:root {
/* Label and underline color when the input is not focused */
--paper-input-container-color: red;
/* Label and underline color when the input is focused */
--paper-input-container-focus-color: blue;
/* Label and underline color when the input is invalid */
--paper-input-container-invalid-color: green;
/* Input foreground color */
--paper-input-container-input-color: black;
}
</style>