Fix darkmode text color for altair plots (#3555)

* dont apply formatting for non-native plots

* CHANGELOG

* Remove unused diff
This commit is contained in:
Freddy Boulton 2023-03-21 19:32:33 -04:00 committed by GitHub
parent 053504a691
commit 7140903dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,7 @@ No changes to highlight.
## Bug Fixes:
- Fixed bug where text for altair plots was not legible in dark mode by [@freddyaboulton](https://github.com/freddyaboulton) in [PR 3555](https://github.com/gradio-app/gradio/pull/3555)
- Fixes `Chatbot` and `Image` components so that files passed during processing are added to a directory where they can be served from, by [@abidlabs](https://github.com/abidlabs) in [PR 3523](https://github.com/gradio-app/gradio/pull/3523)
## Documentation Changes:

View File

@ -61,8 +61,10 @@
$: if (type == "altair") {
spec = JSON.parse(plot);
const config = create_config(darkmode);
spec.config = config;
if (value.chart || "") {
const config = create_config(darkmode);
spec.config = config;
}
switch (value.chart || "") {
case "scatter":
if (spec.encoding.color && spec.encoding.color.type == "nominal") {