Skip to content

Commit

Permalink
fix(ld-input): use placeholder opacity instead of color
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Oct 10, 2023
1 parent 77cb5fa commit ab72034
Show file tree
Hide file tree
Showing 22 changed files with 275 additions and 164 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 3 additions & 21 deletions src/liquid/components/ld-input/ld-input.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
--ld-input-icon-col-focus: var(--ld-thm-primary-focus);
--ld-input-icon-col-invalid-focus: var(--ld-thm-error-focus);
--ld-input-icon-col: var(--ld-thm-primary);
--ld-input-placeholder-col-invalid: var(--ld-thm-error-focus);
--ld-input-placeholder-col: var(--ld-col-neutral-600);
--ld-input-placeholder-opacity: 0.6;
--ld-input-text-col-disabled: var(--ld-col-neutral-300);
--ld-input-text-col-invalid-focus: var(--ld-col-neutral-900);
--ld-input-text-col-invalid: var(--ld-thm-error);
Expand Down Expand Up @@ -164,7 +163,7 @@
box-sizing: border-box;

&::placeholder {
color: var(--ld-input-placeholder-col);
opacity: var(--ld-input-placeholder-opacity);
}
}

Expand Down Expand Up @@ -438,10 +437,6 @@
> textarea {
color: var(--ld-input-text-col-invalid);
-webkit-text-fill-color: var(--ld-input-text-col-invalid);

&::placeholder {
color: var(--ld-input-placeholder-col-invalid);
}
}

> input::-webkit-calendar-picker-indicator {
Expand All @@ -451,10 +446,6 @@
background: var(--ld-input-icon-col-invalid-focus);
}
}

.ld-input__placeholder {
color: var(--ld-input-placeholder-col-invalid);
}
}

:host(
Expand Down Expand Up @@ -494,10 +485,6 @@
color: var(--ld-input-text-col-disabled);
caret-color: transparent;
-webkit-text-fill-color: var(--ld-input-text-col-disabled);

&::placeholder {
opacity: 0.25;
}
}

input::-webkit-calendar-picker-indicator {
Expand All @@ -519,18 +506,13 @@
height: 100%;
align-items: center;
pointer-events: none;
color: var(--ld-input-placeholder-col);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
right: var(--ld-input-padding-x-md);
left: var(--ld-input-padding-x-md);
margin-right: 0;

:host(.ld-input--disabled) &,
.ld-input.ld-input--disabled & {
opacity: 0.25;
}
opacity: var(--ld-input-placeholder-opacity);
}

.ld-select__slot-container {
Expand Down
Loading

0 comments on commit ab72034

Please sign in to comment.