-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make links in the login page visually obvious #11474
Make links in the login page visually obvious #11474
Conversation
"I forgot my password" and "I forgot my username" are links without underline and its not visually evident without color vision.
DryRun Security SummaryThe pull request involves a routine CSS style update to the "dojo.css" file, adding color styles for specific password-related link elements without introducing any security vulnerabilities. Expand for full summarySummary: The code changes in this pull request appear to be a routine update to the application's CSS styles, specifically related to the styling and layout of the "dojo/static/dojo/css/dojo.css" file. The changes include adding styles for the "form ul li a#reset-password" and "form ul li a#forgot-username" elements, setting their color to RGB(51, 122, 183). From an application security perspective, these changes do not introduce any obvious security vulnerabilities, as they are focused on the visual styling of the application and do not seem to affect any security-critical functionality. Overall, this code change is likely intended to improve the user interface and user experience of the application. Files Changed:
Code AnalysisWe ran |
@mtesauro, @grendel513 |
Yes, please make that change. There is nothing wrong with inline styles, but we already have a styles file here that would be a more appropriate place. |
The inline styles from the login.html page have been removed and have been put into the dojo.css styles file. |
@oussama-taoufiq Looks like you've got a bunch of unrelated files in this PR. Can you please clean that up so we can approve this PR? |
be9711a
to
57183e8
Compare
@mtesauro done. I cleaned the PR of the unrelated files and keep only the styles 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.
Approved
Page / Screen Title
Defect Dojo login
Page URL / Screen ID
https://demo.defectdojo.org
Error Title
Creating links that are not visually evident without color vision
Error Severity
Serious
Status
Fail
Accessibility Issue
[Description of issue] "I forgot my password" and "I forgot my username" are links without underline and its not visually evident without color vision.
[Impact on users] Users may not know that they are links and can be misleading.
[Pattern] Within the login page.
[Sample of code]
<a id="reset-password" href="/password_reset/">I forgot my password</a>
Remediation
[Recommendation]
Please remove styles on the hyperlinks so that it is visually easy to know that its an hyperlink.
[Additional Resources]
https://www.w3.org/WAI/WCAG21/Techniques/failures/F73
https://www.w3.org/WAI/WCAG21/Techniques/general/G182