Skip to content

NinjaOne dark mode: hardcoded muted text unreadable in WYSIWYG reports #2

Description

@JonathanPitre

Summary

HTML fragments from ConvertTo-NinjaOneHtml are unreadable in NinjaOne dark mode due to light-theme assumptions in WYSIWYG fragment HTML.

Screenshot

Access Errors unreadable in NinjaOne dark mode

The Access Errors warning card shows near-white title/body text on a pale yellow info-card.warning background when NinjaOne dark mode is enabled.

Current behavior

  1. Info cards (New-HtmlInfoCard) — info-card.warning keeps a light yellow background while page text inherits dark-mode light colors.
  2. Muted inline text — hardcoded color: #666 / #888 on table dates, cleanup sizes, duplicate paths (low contrast on dark backgrounds).

New-HtmlWrapper standalone CSS is fine for exported HTML files, but NinjaOne WYSIWYG fields strip style blocks. Only inline styles and NinjaOne-provided classes survive.

Expected behavior

  • Info card title/body readable in NinjaOne light and dark mode
  • Secondary text inherits theme colors (stat-desc) where the background is not a fixed light tint

Environment

  • UltraTree 1.0.1
  • NinjaOne device custom field (WYSIWYG), dark mode enabled
  • Report via Get-FolderSizes | ConvertTo-NinjaOneHtml (no wrapper)

Suggested fix

  • New-HtmlInfoCard: explicit dark text on info-title / info-description (light tinted card backgrounds stay light in dark mode)
  • Other fragment helpers: replace hardcoded #666 / #888 with class="stat-desc" where appropriate

Tracked in PR #3.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions