Draft page
Access: Prod

Report Styling CSS Reference

Generated Audit Lab reports expose HTML classes that you can target from the custom CSS editor. The available classes depend on the report template and report content. This reference documents the shared structure observed in generated WCAG reports and template-specific classes observed in additional report templates.

Report Structure

The report is rendered inside a single root element. Sections are nested recursively, so the same section classes can appear on top-level chapters, subsections, and individual audit-result sections.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<div class="report-root">
  <div class="sections">
    <div class="section cover-page">...</div>
    <div class="section">...</div>
    <div class="section">
      <div class="section-header has-numbering">...</div>
      <div class="section-content">...</div>
      <div class="subsections">
        <div class="section">...</div>
      </div>
    </div>
  </div>
</div>
ClassElementPurpose
.report-rootdivRoot element for the complete report. Use it to scope broad report styles.
.sectionsdivContainer for all report sections.
.sectiondivGeneric report section. Used for cover page, table of contents, chapters, subsections, and audit-result entries.
.cover-pagedivCover page section. Usually combined with .section.
.section-headerdivHeader wrapper for a section title and optional numbering.
.has-numberingdivMarks a section header that contains a visible section number.
.numberingh1, h2, h3Visible section number, such as 1, 4.2, or 4.2.1.
.section-title-rowdivWrapper around the section title heading.
.section-titleh1, h2, h3Section title text.
.section-subtitledivSubtitle or secondary label inside a generated section. For audit-result sections, this can contain the severity label.
.section-contentdivMain content area for a section.
.subsectionsdivWrapper for nested sections below a parent section.

Cover Page and Text Content

ClassElementPurpose
.logodivLogo area on the cover page when the template includes a logo block.
.titledivReport title on the cover page. Also appears in the fallback error view. Scope title styling with .cover-page .title when you only want to change the cover page.
.subtitledivReport subtitle or report description on the cover page.
.report-timedivReport generation timestamp on the cover page.
.contentdivGeneric content wrapper used across text blocks, tables, containers, and table-of-contents content. Combine it with a more specific class before styling.
.maindivMain content block inside a section.
.textdivText content block, such as report descriptions or explanatory paragraphs.
.table-of-contentsdivContent wrapper for the generated table of contents.
.tocdivTable-of-contents list wrapper.
.toc-itemsulTable-of-contents list.

Audit Result Content

ClassElementPurpose
.audit-overviewdivAudit overview or audit-result filter section. Usually combined with .section.
.statisticsdivStatistics section. Usually combined with .section.
.chartdivChart wrapper in the statistics section.
.chart-contentdivInner chart content wrapper.
.paneldivPanel around repeated audit-result metadata.
.containerdivLayout container inside panels.
.content-container-itemdivOne item inside a .container, commonly a table block.
.definition-tabledivDefinition-style table wrapper for metadata such as status, creator, reviewer, and version.
.tabledivGeneric table content wrapper.
.table-contenttableActual HTML table.
.finding-detail-labeldivLabel for finding details such as description, selectors, or HTML.
.repair-listulList of repair guidance or detected issue details.

Template-Specific Content

Some report templates add extra content blocks. These classes may be absent from other templates.

ClassElementPurpose
.warning-notedivWarning, disclaimer, or template guidance block.
.editor-notedivEditor guidance or required-content note embedded by the report template.
.requirement-result-matrixdivWrapper for a requirement-by-audit-object result matrix.
.rrm-legenddivLegend for the requirement result matrix.
.rrm-legend-labelspanLabel at the start of the matrix legend.
.rrm-legend-itemspanOne legend item for a matrix status value.
.rrm-tabletableRequirement result matrix table.
.rrm-requirement-headerthHeader cell for the requirement column.
.rrm-object-headerthHeader cell for an audit object column.
.rrm-requirement-cellthRequirement row header inside the matrix body.
.rrm-status-celltdMatrix cell containing one result status.
.rrm-statusspanStatus marker inside the matrix legend or matrix cells.
.rrm-status--passedspanMatrix status marker for passed results.
.rrm-status--failedspanMatrix status marker for failed results.
.rrm-status--not-applicablespanMatrix status marker for not applicable results.
.rrm-status--dashspanMatrix marker for no rating, no data, or not planned results.

Status and Severity Classes

Status and severity indicators combine a role class with a value class. For example, a passed status appears as .status.passed, while an error severity appears as .severity.error.

ClassElementPurpose
.statusdivStatus indicator wrapper.
.severitydivSeverity indicator wrapper.
.labeldivText label inside a status indicator.
.passeddivPassed evaluation status.
.faileddivFailed evaluation status.
.notapplicabledivNot applicable evaluation status.
.undecideddivUndecided evaluation status.
.warndivWarning severity.
.errordivError severity.
.missinggMissing-state marker inside generated icon graphics.

Images and Screenshots

ClassElementPurpose
.imagedivGeneric image content block.
.screenshotdivScreenshot content block.
.image-boxdivWrapper around a screenshot image.
.overlaydivOverlay layer above a screenshot.

Generated Icon and Chart Internals

The following classes are present in the generated report, but they come from Font Awesome, Plotly, or generated SVG internals. They are available to CSS, but they are less stable than the report-specific classes above.

ClassSourcePurpose
.svg-inline--faFont AwesomeBase class for generated inline SVG icons.
.iconReport icon wrapperShared class on status and severity icons.
.fa-circle-checkFont AwesomePassed status icon.
.fa-circle-xmarkFont AwesomeFailed or error icon.
.fa-circle-questionFont AwesomeUndecided status icon.
.fa-circle-exclamationFont AwesomeWarning icon.
.fa-banFont AwesomeNot applicable icon.
.fontawesome-i2svg-activeFont AwesomeRuntime marker on the HTML element.
.fontawesome-i2svg-completeFont AwesomeRuntime marker on the HTML element.
.js-plotly-plotPlotlyPlotly chart root.
.plot-containerPlotlyPlotly chart container.
.plotlyPlotlyPlotly chart wrapper.
.svg-containerPlotlySVG chart container.
.main-svgPlotlyChart SVG.
.user-select-nonePlotlyPlotly interaction wrapper.
.bglayerPlotly/SVGChart background layer.
.cartesianlayerPlotly/SVGCartesian chart layer.
.clipsPlotly/SVGChart clip-path container.
.draglayerPlotly/SVGChart interaction layer.
.funnelarealayerPlotly/SVGFunnel area layer.
.g-gtitlePlotly/SVGChart title group.
.geolayerPlotly/SVGGeographic chart layer.
.gl-containerPlotly/SVGWebGL chart container.
.glimagesPlotly/SVGWebGL image layer.
.gradientsPlotly/SVGSVG gradient definitions.
.hoverlayerPlotly/SVGChart hover layer.
.iciclelayerPlotly/SVGIcicle chart layer.
.imagelayerPlotly/SVGChart image layer.
.indicatorlayerPlotly/SVGIndicator chart layer.
.infolayerPlotly/SVGChart information layer.
.js-reference-pointPlotly/SVGInternal chart reference point.
.layer-abovePlotly/SVGSVG layer above data.
.layer-belowPlotly/SVGSVG layer below data.
.menulayerPlotly/SVGChart menu layer.
.modebar-containerPlotlyPlotly mode bar container.
.patternsPlotly/SVGSVG pattern definitions.
.pielayerPlotly/SVGPie chart layer.
.polarlayerPlotly/SVGPolar chart layer.
.selectionlayerPlotly/SVGChart selection layer.
.shapelayerPlotly/SVGChart shape layer.
.slicePlotly/SVGPie-chart slice group.
.slicetextPlotly/SVGPie-chart slice label.
.smithlayerPlotly/SVGSmith chart layer.
.sunburstlayerPlotly/SVGSunburst chart layer.
.surfacePlotly/SVGPie-chart surface path.
.ternarylayerPlotly/SVGTernary chart layer.
.tracePlotly/SVGChart trace group.
.treemaplayerPlotly/SVGTreemap chart layer.
.zoomlayerPlotly/SVGChart zoom layer.

Fallback Display Classes

ClassElementPurpose
.messagedivError-message area used when the report cannot be displayed.

Selector Examples

Change only the cover-page title:

1
2
3
.cover-page .title {
  font-size: 1.8rem;
}

Change all section headings:

1
2
3
.section-title {
  color: #153e75;
}

Style failed statuses and error severities consistently:

1
2
3
4
5
.status.failed,
.severity.error {
  color: #a40000;
  font-weight: 700;
}