-
Notifications
You must be signed in to change notification settings - Fork 521
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
Fix #5086 : Implement Dark Mode support for NPS Survey #5104
Conversation
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.
@adhiamboperes PTAL, Thanks!
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.
Thanks a lot @MohitGupta121! I just had two minor comments:
- Can I see how the 'NPS Survey Final comment screen' looks without text and the submit button disabled?
- Is there a way to make the progress bar look like the one in light mode (I don't mind too much, but let's give it a try).
Otherwise this looks really great!
Unassigning @adhiamboperes since the review is done. |
Hi @MohitGupta121, it looks like some changes were requested on this pull request by @adhiamboperes. PTAL. Thanks! |
@adhiamboperes PTAL Thanks, I updated the PR description with button disabled final comment screen.
Also I think we need to introduce NPS Survey layout for landscape version because you can see the output, screen is not scrollable like welcome screen is incomplete and cutting from bottom: |
I created a custom toolbar for the survey, please check the layout file. The progressbar drawable in this toolbar is also customized, per the survey mocks. See how it looks in the light mode screenshots with the white outline.
Yes, that is correct. |
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.
@adhiamboperes PTAL, here are the screenshots of the progress bar in both light and dark-mode. Thanks!
Light Mode | Dark Mode |
---|---|
Thank you, this LGTM |
Thank you so much @adhiamboperes anything else I need to update in this PR? |
Hey @MohitGupta121, I have opened a PR for the landscape layouts here and assigned it to you and @kkmurerwa for review. If you are happy with it, we will merge it into this branch before merging to develop. |
Assigning @seanlip for code owner reviews. Thanks! |
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.
Left a couple of minor follow up comments
app/src/main/res/drawable/nps_survey_button_inactive_background.xml
Outdated
Show resolved
Hide resolved
@adhiamboperes done that separate dimensions changes for survey. Thanks! |
@MohitGupta121 I think this looks great. Just one question: do we use dark green text on black anywhere else in the app (e.g. "Previous" on the black background)? I find that hard to read, but it's probably fine to leave as-is if it's an existing design pattern for dark mode (i.e. we've used it in other places too). Thanks! |
@seanlip PTAL, Thanks.
|
@MohitGupta121 For me, the leftmost one is the most visible, but it is still a little dark against the background. What is the colour contrast ratio and does it meet accessibility standards? That's one way to test. |
@seanlip Sorry, yes you are right. This does not match accessibility standards. Here is the output: |
@seanlip After changing the color to oppia_bright_green here is the output screenshot and accessibility result: Screenshot:Accessibility Resultnew.record.webm |
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.
Thanks @MohitGupta121 ! No further concenrs.
Hi @MohitGupta121, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to merge this PR once the CI checks pass and you're happy with it. Thanks! |
Thanks @MohitGupta121, @seanlip, @kaiyuxu. I'm merging this now. |
Explanation
Fix #5086 : Implement full Dark Mode support for NPS Survey
Essential Checklist
For UI-specific PRs only
NPS Survey Welcome Screen
NPS Survey Question screen (Button Disabled)
NPS Survey Question screen (Button Enabled)
NPS Survey Score Screen
NPS Survey Final comment screen (Button Enabled)
NPS Survey Final comment screen (Button Disabled)
NPS Survey Thanks You screen
NPS Survey Exit Dialog
If your PR includes UI-related changes, then: