Skip to content

Commit 1e9fa16

Browse files
committed
improve the index preview contrast
1 parent 01b5b33 commit 1e9fa16

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

xarray/core/formatting_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def summarize_index(coord_names, index):
143143

144144
return (
145145
f"<div class='xr-index-name'><div>{name}</div></div>"
146-
f"<div class='xr-index-preview xr-preview'>{preview}</div>"
146+
f"<div class='xr-index-preview'>{preview}</div>"
147147
f"<div></div>"
148148
f"<input id='{index_id}' class='xr-index-data-in' type='checkbox'/>"
149149
f"<label for='{index_id}' title='Show/Hide index repr'>{data_icon}</label>"

xarray/static/css/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ body.vscode-dark {
246246

247247
.xr-index-preview {
248248
grid-column: 2 / 5;
249+
color: var(--xr-font-color2);
249250
}
250251

251252
.xr-var-name,

0 commit comments

Comments
 (0)