Skip to content

Commit

Permalink
fix(ld-input): disabled color on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Sep 20, 2023
1 parent a177993 commit 62cafe9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/liquid/components/ld-input/ld-input.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
--ld-input-time-min-width-lg: 7.5rem;

/* colors */
--ld-input-col: var(--ld-col-neutral-900);
--ld-input-bg-col-disabled: var(--ld-col-neutral-010);
--ld-input-bg-col-invalid-focus: var(--ld-col-wht);
--ld-input-bg-col-invalid: var(--ld-thm-error-disabled);
Expand Down Expand Up @@ -91,9 +90,10 @@
}

> input {
color: var(--ld-input-col);
color: var(--ld-input-text-col);
align-self: stretch;
max-height: var(--ld-input-max-height-md);
-webkit-text-fill-color: var(--ld-input-text-col);

&[type='file'] {
opacity: 0;
Expand Down Expand Up @@ -413,6 +413,7 @@
) {
background-color: var(--ld-input-bg-col-invalid);
color: var(--ld-input-text-col-invalid);
-webkit-text-fill-color: var(--ld-input-text-col-invalid);
}

:host(.ld-input--invalid:not(.ld-input--disabled, [aria-disabled='true'])),
Expand All @@ -424,6 +425,7 @@
> input,
> 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);
Expand Down Expand Up @@ -458,6 +460,7 @@
> input,
> textarea {
color: var(--ld-input-text-col-invalid-focus);
-webkit-text-fill-color: var(--ld-input-text-col-invalid-focus);
}
}

Expand All @@ -474,8 +477,9 @@

input,
textarea {
color: currentColor;
color: var(--ld-input-text-col-disabled);
caret-color: transparent;
-webkit-text-fill-color: var(--ld-input-text-col-disabled);

&::placeholder {
opacity: 0.25;
Expand Down

1 comment on commit 62cafe9

@vercel
Copy link

@vercel vercel bot commented on 62cafe9 Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

liquid – ./

liquid-git-main-uxsd.vercel.app
liquid-oxygen.vercel.app
liquid-uxsd.vercel.app

Please sign in to comment.