Skip to content

comment-on-draft-pr-indicator: Main body comment button not modified #7438

Closed

Description

@Jiralite

Description

The comment button's label is unaltered in the main body of a pull request. The screenshot example in the feature shows it works, so either it got removed or the example needs to be updated.

Not entirely sure how it worked before, but the class is not present here:

function init(signal: AbortSignal): void {
observe([
'.review-simple-reply-button', // "Add single comment" button
'.add-comment-label', // "Add review comment" button
'.start-review-label', // "Start a review" button
], addIndicator, {signal});
}

Adding '.btn-primary' modifies the button's label, but I am not sure if this is the proper resolution.

How to replicate the issue + URL

  1. Open a draft pull request (Open draft PR sandbox#7)
  2. See the comment button

Extension version

24.6.9

Browser(s) used

Arc, Firefox

Activity

  1. fregante commented on Jun 14, 2024

    @fregante
    Member

    Oh you meant this one, right?

    Screenshot 2

    Yeah we did not implement that. PR welcome to turn the feature into a banner exactly like netiquette instead of altering each button.

  2. added
    small
    and removed on Jun 14, 2024
  3. Jiralite commented on Jun 14, 2024

    @Jiralite
    ContributorAuthor

    Yeah, that's what I mean. I only opened a bug report about it because the associated image showed it working:

    image

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

    acceptedbugenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions