Skip to content

[Bug]: Ink's starting colour ignores the elements under a legend, colorbar, table or chart #2953

Done

Description

@jgregoriorincon

What's wrong?
Turning on Ink for a legend, colorbar, table or chart gives it a starting colour: white when the background under its text is dark, dark grey otherwise (first_ink, #2257). It reads the element's own background and the page, and nothing else. When another element sits under the text, such as a rectangle sent behind a legend that has no background of its own, the start can be unreadable: white text over a white rectangle on a dark page, or dark grey over a dark rectangle on a white one.

Expected
The starting colour reads what is shown under the text, including the visible elements below it in drawing order that overlap it (their fill and opacity), then the page.

Notes
Found in the review of #2950 (a page colour). The ink can be changed with the swatch beside the checkbox, so this only affects the first colour.

Activity

  1. jgregoriorincon commented on Nov 25, 2026

    @jgregoriorincon
    ContributorAuthor

    I'll take this.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions