Improve styling
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@tp/tp-time-input",
|
"name": "@tp/tp-time-input",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "tp-time-input.js",
|
"main": "tp-time-input.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -17,14 +17,13 @@ class TpTimeInput extends FormElement(LitElement) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
border: solid 1px #000;
|
|
||||||
overflow: hidden;
|
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(:focus-within) {
|
:host(:focus-within) .wrapper {
|
||||||
border-color: var(--tp-time-input-focus-color, #007bff);
|
outline: var(--tp-time-input-focus-outline, solid 1px #007bff);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
@@ -115,10 +114,6 @@ class TpTimeInput extends FormElement(LitElement) {
|
|||||||
color: #ff0000;
|
color: #ff0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host([invalid]) {
|
|
||||||
border-color: var(--tp-time-input-border-color-invalid, #ff0000);
|
|
||||||
}
|
|
||||||
|
|
||||||
.error-message {
|
.error-message {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user