Skip to content

types used in Returns section of functions are shown in white instead of green / red #2546

@sapphi-red

Description

@sapphi-red

Search terms

default theme, returns, function, link, css

Expected Behavior

Types with a link in "Returns" section of functions are shown in green / red (depending on whether it is a type or interface).

image

(I tweaked the CSS a bit to make this image)

Actual Behavior

Types with a link in "Returns" section of functions are shown in white.

https://typedoc.org/api/functions/JSX.createElement.html
image

It seems

h1 > a:not(.link), h2 > a:not(.link), h3 > a:not(.link), h4 > a:not(.link), h5 > a:not(.link), h6 > a:not(.link) {
    text-decoration: none;
    color: var(--color-text);
}

is overriding the color.

Steps to reproduce the bug

See the actual behavior section.

Environment

  • Typedoc version: 0.25.13
  • TypeScript version: 5.3.3
  • Node.js version: 20.11.1
  • OS: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions