Fix faded textbox on iOS / Safari (#3993)

* change

* changes

* changes

* changes

* changes

* formatting

* fix

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
This commit is contained in:
aliabid94 2023-04-28 07:53:44 -07:00 committed by GitHub
parent 9d3b5d7bcc
commit 8a31766a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 2 deletions

View File

@ -7,7 +7,7 @@ No changes to highlight.
## Bug Fixes:
No changes to highlight.
- Fix faded coloring of output textboxes in iOS / Safari by [@aliabid94](https://github.com/aliabid94) in [PR 3993](https://github.com/gradio-app/gradio/pull/3993)
## Documentation Changes:

View File

@ -67,7 +67,7 @@ class Soft(Base):
block_title_background_fill="*block_label_background_fill",
block_title_text_weight="600",
block_title_text_color="*primary_500",
block_title_text_color_dark="*white",
block_title_text_color_dark="white",
block_label_margin="*spacing_md",
# Inputs
input_background_fill="white",

View File

@ -314,6 +314,9 @@
}
input:disabled {
-webkit-text-fill-color: var(--body-text-color);
-webkit-opacity: 1;
opacity: 1;
cursor: not-allowed;
}

View File

@ -63,6 +63,11 @@
font-size: var(--input-text-size);
line-height: var(--line-sm);
}
input:disabled {
-webkit-text-fill-color: var(--body-text-color);
-webkit-opacity: 1;
opacity: 1;
}
input:focus {
box-shadow: var(--input-shadow-focus);

View File

@ -86,6 +86,11 @@
line-height: var(--line-sm);
text-align: center;
}
input:disabled {
-webkit-text-fill-color: var(--body-text-color);
-webkit-opacity: 1;
opacity: 1;
}
input[type="number"]:focus {
box-shadow: var(--input-shadow-focus);

View File

@ -221,6 +221,12 @@
font-size: var(--input-text-size);
line-height: var(--line-sm);
}
input:disabled,
textarea:disabled {
-webkit-text-fill-color: var(--body-text-color);
-webkit-opacity: 1;
opacity: 1;
}
input:focus,
textarea:focus {