-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Show verification info only if verification is enabled #4878
Conversation
Great, since we're touching this part of the application, I think we'll add some changes to fix an accessibility issue we've got here. We say "With you account you can (...) icon-x Support proposals". But the icon isn't shown for screen readers, so people using them actually hear that they can support proposals when they cannot. |
084fe8f
to
22e3940
Compare
4861ded
to
608831b
Compare
fc4a392
to
3607282
Compare
608831b
to
49b319e
Compare
3607282
to
b3ad121
Compare
49b319e
to
b859cb8
Compare
b3ad121
to
68be7ec
Compare
b859cb8
to
830501c
Compare
830501c
to
2bac802
Compare
68be7ec
to
3788376
Compare
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.
Hi @javierm, I left you a comment regarding a minor thing.
@@ -1270,16 +1266,6 @@ form { | |||
vertical-align: top; | |||
} | |||
|
|||
.user-permissions { |
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.
Not a big deal, but what do you think about removing the class user-permissions
from the following views?
- app/views/account/show.html.erb
- app/views/management/_user_permissions.html.erb
- app/views/verification/letter/new.html.erb
- app/views/verification/residence/new.html.erb
It seems now that class is useless 🤔
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.
Interesting! I'd vote for keeping the class, at least for now. There might be people using custom styles for this class, and removing it would make the element harder to style 🤔.
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.
Ok, nice catch!
We're also adding tests showing the current behavior, which we're about to change.
It was strange to tell users they need to verify their account in order to perform all available actions when they've already verified their account.
As mentioned in commit 925f04e, icon classes make screen readers announce strange symbols and aren't properly displayed for people who have changed their preferred font family.
The contrast value was 1.75, which makes the text hard to read and it isn't even near to the minimum accessibility requirements. We're using the `$color-success` variable since the `$check` color is green and this one is green too.
Using line-height is confusing and has unexpected results when texts span over multiple lines, as might be the case in some language and screen resolution combinations.
3788376
to
f138709
Compare
References
Objectives
Now, even if the "Skip user verification" setting is enabled at
admin/settings#tab-feature-flags
on the "My account"/account
page the text "To perform all the actions verify your account. / Account verified" is displayed which can be a bit confusing for users.This PR hides this information if the "Skip user verification" setting is active.
Visual Changes
Before
After