improve the loading component (#8251)

* improve the loading component

* fix unused method warning

* revert the change
This commit is contained in:
Alan Ren
2019-11-07 11:28:38 -08:00
committed by GitHub
parent 7f51921176
commit b364e32beb
3 changed files with 43 additions and 5 deletions

View File

@@ -7,6 +7,11 @@
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.modelview-loadingComponent-status-text {
margin-left: 5px;
}
.vs .modelview-loadingComponent-spinner {
@@ -26,4 +31,15 @@
.modelview-loadingComponent-content-loading {
display: none;
}
}
/* We want to make this on DOM but not visible so that screen reader can read the status message */
.modelview-loading-component-status-message {
top: -1;
left: -1px;
width: 1px;
height: 1px;
position: absolute;
overflow: hidden;
}