Skip to content

[Bug]: False color of annotationCommentButton when created #22087

Description

@LoukasPap

Attach (recommended) or Link to PDF file

comments.pdf

Web browser and its version

Version 157.0 (64-bit)

Operating system and its version

Windows 11, Version 10.0.26100

PDF.js version

The one bundled with the Firefox version mentioned above

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

  1. Open comments.pdf
  2. Select a text and add a comment
  3. Select red comment color (for better visibility)
  4. Close the highlight toolbar
Image

What is the expected behavior?

When closing the highlight toolbar, the annotationCommentButton should stay red.

Image

What went wrong?

When closing the highlight toolbar, the annotationCommentButton is gray and not red.

Image

Link to a viewer

No response

Additional context

The newly added HTML annotation misses the background-color: rgb(215, 0, 0); that pre-existing annotations have.

Activity

  1. added a commit that references this issue on Oct 6, 2026
    1e4d6fc
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

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions