Skip to content

fix(ui): add missing "solid" keyword to disclaimer border in new UI#15001

Open
ksitton58 wants to merge 1 commit into
DefectDojo:bugfixfrom
ksitton58:fix/new-ui-disclaimer-border-style
Open

fix(ui): add missing "solid" keyword to disclaimer border in new UI#15001
ksitton58 wants to merge 1 commit into
DefectDojo:bugfixfrom
ksitton58:fix/new-ui-disclaimer-border-style

Conversation

@ksitton58

@ksitton58 ksitton58 commented Jun 11, 2026

Copy link
Copy Markdown

Description

Fixes an invisible border on the disclaimer warning box throughout the new (Tailwind) UI.

The disclaimer box set its border with border:1px #003333 — width and color, but no
border-style keyword. Per the CSS spec, border-style defaults to none, so the border
never renders regardless of width/color. The box was clearly meant to have a border (it
sets both), but none displayed. Adding solid makes it render — this applies equally to
the on-screen views and the report/PDF output.

Fixed across dojo/templates/:

  • Interactive views: view_test.html, form_fields.html, findings_list_snippet.html
  • Report templates: custom_html_report.html and the *_pdf_report.html set (endpoint,
    engagement, finding, product, product_endpoint, product_type, test)

Out of scope (same bug, deliberately separate): the classic UI (dojo/templates_classic/,
being deprecated) and the email notification .tpl templates (different rendering engine).

Test results

One-property CSS correction, no logic change. Confirmed the shorthand was the cause:
border:1px <color> computes border-style:none / border-width:0 (no border); adding
solid renders a 1px border. Verified the computed values in-browser. No Python changed,
so no unit tests added.

Documentation

N/A.

Checklist

  • Bugfix — submitted against the bugfix branch.
  • Meaningful PR name.
  • Ruff compliant (no Python changed).
  • Python 3.13 compliant (no Python changed).

The disclaimer warning box set its border as border:1px DefectDojo#3333 -- a shorthand
with width and color but no style keyword. Per the CSS spec, border-style
defaults to "none", so the border never renders. Adding "solid" makes the
intended border visible. This is engine-agnostic (applies to both the on-screen
views and the report/PDF output).

Fixed across the new UI (dojo/templates/):
- Interactive views: view_test.html, form_fields.html, findings_list_snippet.html
- Report templates: custom_html_report.html and the *_pdf_report.html set
  (endpoint, engagement, finding, product, product_endpoint, product_type, test)

Out of scope here (same bug, deliberately separate):
- Classic UI (dojo/templates_classic/) -- being deprecated.
- Email notification templates (.tpl) -- different rendering engine.
@ksitton58 ksitton58 force-pushed the fix/new-ui-disclaimer-border-style branch from 97d70f3 to 614a10b Compare June 12, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant