-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default loading indicator theme #4174
Conversation
@@ -38,6 +37,60 @@ | |||
|
|||
private static final String PRIMARY_STYLE_NAME = "v-loading-indicator"; | |||
|
|||
private static final String DEFAULT_THEMING = "@-webkit-keyframes v-progress-start {" + | |||
"0% {width: 0%;}" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"3% {width: 91%;height: 7px;}" + | ||
"100% {width: 96%;height: 7px;}}" + | ||
"@-webkit-keyframes v-progress-wait-pulse {" + | ||
"0% {opacity: 1;}" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -38,6 +37,60 @@ | |||
|
|||
private static final String PRIMARY_STYLE_NAME = "v-loading-indicator"; | |||
|
|||
private static final String DEFAULT_THEMING = "@-webkit-keyframes v-progress-start {" + | |||
"0% {width: 0%;}" + | |||
"100% {width: 50%;}}" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"100% {width: 96%;height: 7px;}}" + | ||
"@-webkit-keyframes v-progress-wait-pulse {" + | ||
"0% {opacity: 1;}" + | ||
"50% {opacity: 0.1;}" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@-webkit-keyframes v-progress-wait-pulse {" + | ||
"0% {opacity: 1;}" + | ||
"50% {opacity: 0.1;}" + | ||
"100% {opacity: 1;}}" + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs vaadin/flow#4174 to be merged before it compiles.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks broke. a discussion (no related file): flow-client/src/main/java/com/vaadin/client/LoadingIndicator.java, line 291 at r2 (raw file):
It's better to use getter instead of direct field reference. flow-client/src/main/java/com/vaadin/client/LoadingIndicator.java, line 306 at r2 (raw file):
flow-server/src/main/java/com/vaadin/flow/component/page/LoadingIndicatorConfiguration.java, line 88 at r2 (raw file):
Not sure whether the meaning of the flag is different here. But most likely it's the same issue with the naming here. Comments from Reviewable |
Only adds the server side API for this. Exposes UI configuration objects in InitialPageSettings for easier discoverability and usage.
Adds default theming for loading indicator, which is the same as in Vaadin 8. Adds the client parts for disabling the default theme.
Review status: all files reviewed at latest revision, 4 unresolved discussions, some commit checks broke. a discussion (no related file): Previously, denis-anisimov (Denis) wrote…
Done. flow-client/src/main/java/com/vaadin/client/LoadingIndicator.java, line 291 at r2 (raw file): Previously, denis-anisimov (Denis) wrote…
Done. flow-client/src/main/java/com/vaadin/client/LoadingIndicator.java, line 306 at r2 (raw file): Previously, denis-anisimov (Denis) wrote…
Done. flow-server/src/main/java/com/vaadin/flow/component/page/LoadingIndicatorConfiguration.java, line 88 at r2 (raw file): Previously, denis-anisimov (Denis) wrote…
Done. Comments from Reviewable |
Review status: all files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
SonarQube analysis reported 9 issues Watch the comments in this conversation to review them. 4 extra issuesNote: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:
|
Needs vaadin/flow#4174 to be merged before it compiles.
Needs vaadin/flow#4174 to be merged before it compiles.
Needs vaadin/flow#4174 to be merged before it compiles.
* Update loading indicator documentation Needs vaadin/flow#4174 to be merged before it compiles.
Adds default loading indicator theming, and a way to disable it.
The theming is the same as in Vaadin 8 (Valo).
Makes
UI
configuration objects available viaInitialPageSettings
.Fixes the loading indicator configuration not working from server side (at all), broken since 0.0.1.
Tested on macOS with
Tested on Windows 10 with
Related to #3763
This change is