Skip to content

Commit e5583bd

Browse files
authored
Merge pull request #1664 from AnnMarieW/devtools-dark-theme
fix: make devtools text visible with dark themes
2 parents f02ef96 + d040062 commit e5583bd

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
99
- [#1611](https://github.com/plotly/dash/pull/1611) Package dash-renderer artifacts and dependencies with Dash, and source renderer resources from within Dash.
1010

1111
### Fixed
12+
- [#1664](https://github.com/plotly/dash/pull/1664) Fix [#1649](https://github.com/plotly/dash/issues/1649), makes the devtools readable with a dark theme.
1213
- [#1640](https://github.com/plotly/dash/pull/1640) Fix [#1475](https://github.com/plotly/dash/issues/1475), missing `timing_information` after certain modifications to Flask behavior
1314

1415
## [1.20.0] - 2021-04-08

dash/dash-renderer/src/components/error/GlobalErrorOverlay.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
font-family: monospace;
66
font-size: 14px;
77
font-variant-ligatures: common-ligatures;
8+
color: rgb(50, 50, 50);
89
}
910

1011
.dash-error-card {

dash/dash-renderer/src/components/error/menu/DebugMenu.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
border-radius: 32px;
164164
background-color: white;
165165
padding: 4px;
166+
color: rgb(50, 50, 50);
166167
}
167168

168169
.dash-debug-error-count {

tests/integration/devtools/test_devtools_error_handling.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88

99
def app_with_errors():
10-
app = dash.Dash(__name__)
10+
darkly = (
11+
"https://stackpath.bootstrapcdn.com/bootswatch/4.5.2/darkly/bootstrap.min.css"
12+
)
13+
app = dash.Dash(__name__, external_stylesheets=[darkly])
1114

1215
app.layout = html.Div(
1316
[

0 commit comments

Comments
 (0)