Improve dark mode on security policy page
What does this MR do and why?
This MR improves UX of dark mode on security policy pages (scan result policy, scan execution policy) by applying the correct background color for conditions, actions and yaml preview.
Screenshots or screen recordings
Before | After (Dark) | After (Light) |
---|---|---|
Without role-based approvers | Without role-based approvers | Without role-based approvers |
With role-based approvers | With role-based approvers | With role-based approvers |
How to set up and validate locally
- Enable dark mode in preferences
- Create new security policy (
-/security/policies/new?type=scan_result_policy
) - Background for actions, conditions and yaml block should be visible
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #371333 (closed)
Edited by Martin Čavoj