Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 26accc2

Browse files
authored
Added a CSS class to error messages.
Added a CSS class to error messages output by dash on load to allow them to be styled. A workaround for this is to use a (fragile) selector path to match the element, e.g. #react-entry-point > div > div:nth-child(2):not([id]):not([class])
1 parent c0f886d commit 26accc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/APIController.react.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ class UnconnectedContainer extends Component {
8383
if (layoutRequest.status &&
8484
!contains(layoutRequest.status, [200, 'loading'])
8585
) {
86-
return (<div>{'Error loading layout'}</div>);
86+
return (<div className="_dash-error">{'Error loading layout'}</div>);
8787
}
8888

8989

9090
else if (
9191
dependenciesRequest.status &&
9292
!contains(dependenciesRequest.status, [200, 'loading'])
9393
) {
94-
return (<div>{'Error loading dependencies'}</div>);
94+
return (<div className="_dash-error">{'Error loading dependencies'}</div>);
9595
}
9696

9797

0 commit comments

Comments
 (0)