-
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
Text elements must have sufficient color contrast against the background. #11689
base: dev
Are you sure you want to change the base?
Text elements must have sufficient color contrast against the background. #11689
Conversation
"I forgot my password" and "I forgot my username" are links without underline and its not visually evident without color vision.
Adjust the color contrast of the text with its background for the element a in the ul.breadcrumb.main and for the element h3 in the .panel-heading.
DryRun Security SummaryThe pull request involves CSS styling updates in the Dojo application's dojo.css file, primarily changing colors and background colors for various UI elements like breadcrumbs, panel headings, and badges, with no apparent security implications. Expand for full summarySummary: The code changes in this pull request appear to be focused on updating the CSS styles for various elements in the Dojo application. The changes include modifying the colors and background colors of elements such as breadcrumbs, panel headings, and badges. From an application security perspective, these changes are primarily related to the visual styling of the application and do not appear to introduce any security vulnerabilities. However, it is always important to review any code changes, even if they are just CSS updates, to ensure that they do not introduce any unintended consequences or security issues. Files Changed:
Code AnalysisWe ran |
Text elements must have sufficient color contrast against the background.
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
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 following class would need be updated as well: https://github.com/DefectDojo/django-DefectDojo/blob/85acabd8f7f00e2068bb7bbf89591974dfead6bf/dojo/static/dojo/css/dojo.css#L1357C1-L1360C2
Maybe it is because I have seen the white text for so long, but the black makes this look totally different 😅 @blakeaowens what are your thoughts on this?
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@Maffooch Should I make the changes or wait for @blakeaowens's response? |
It would probably be best to wait for @blakeaowens here |
Error Title
Text elements must have sufficient color contrast against the background
Error Severity
Serious
Status
Fail
Accessibility Issue
[Description of issue] The 2 instance of Colour contrast as shown in the screenshots : The visual presentation of text and images of text does not have a contrast ratio of at least 4.5:1
Impact on users
[Pattern] Throughout the application dashboard.
[Steps to reproduce]
With the application called Colour Contrast Analyser, select the foreground colour and the background colour of the 2 mentioned in the screenshot and check the contrast ratio
Remediation
[Recommendation] Please have the contrast ratio of the 2 instance and across the site of at least 4.5:1
[Additional Resources]
https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
Screenshot

Screenshot
