-
Notifications
You must be signed in to change notification settings - Fork 527
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
Fixes part of #2258: Changes in Add Profile Activity[a11y] #2456
Conversation
Fixes Issue 3 of oppia#2258, Changed the button to diabled according to the state and TextColor as per Chantel's suggesstion
@rt4914 Is it failing because of the that randomly failing test? |
@@ -205,7 +205,7 @@ | |||
android:layout_height="wrap_content" | |||
android:fontFamily="sans-serif" | |||
android:text="@string/add_profile_allow_download_sub" | |||
android:textColor="@color/light_grey" | |||
android:textColor="#555555" |
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.
Define this color in colors.xml file
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.
done
@@ -194,7 +194,7 @@ | |||
android:layout_height="wrap_content" | |||
android:fontFamily="sans-serif" | |||
android:text="@string/add_profile_allow_download_heading" | |||
android:textColor="@{viewModel.validPin ? @color/oppiaPrimaryTextDark : @color/grey}" | |||
android:textColor="#333333" |
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.
Define this color in colors.xml file
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.
done
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.
@Arjupta Please add before and after screenshot along with the scanner result screenshot (even if it is successful).
@rt4914 In this PR I changed the colors related to Allow Download View , and it also did got solved, but the Input Layouts are now showing the contrast ratio error too (which on previous scans on real device didn't showed up). Can you verify at your end? |
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.
@Arjupta PTAL. Thanks.
@@ -196,7 +196,7 @@ | |||
android:layout_height="wrap_content" | |||
android:fontFamily="sans-serif" | |||
android:text="@string/add_profile_allow_download_heading" | |||
android:textColor="@{viewModel.validPin ? @color/oppiaPrimaryTextDark : @color/grey}" | |||
android:textColor="@color/accessible_grey" |
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.
I think in this PR we have to replace grey
with accessible_grey
.
Example:
android:textColor="@{viewModel.validPin ? @color/oppiaPrimaryTextDark : @color/accessible_grey}"
Can you check if the scanner passes for both these cases of color code.
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.
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.
The earlier implementation was actually more correct because when the checkbox is selected the text becomes highlighted which gives better look.
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.
I think you meant to say until the Text Input Layout have some content them, the textviews seemed to be inactive. Because checkbox controls the visibility of all the content below it.
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.
Yeah, you are right, the correctness of pin controls the color of switch related texts.
@Arjupta PTAL |
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.
LGTM, thanks.
Explanation
Fixes part of #2258,
( Issue 3 ) Changed the button to disabled according to the state and TextColor as per Chantel's suggestion
Checklist