🔥 HOT: Ticket/ - Collection

Opened 3 weeks ago

Closed 3 weeks ago

#8142 closed defect (bug) (fixed)

Release confirmations: Both buttons are styles as primary buttons.

Reported by: peterwilsoncc's profile peterwilsoncc Owned by: dd32's profile dd32
Milestone: Priority: normal
Component: Plugin Directory Keywords: has-patch
Cc:

Description

On the release confirmation page, pending releases show two buttons. One to proceed with the release and one to discard the release.

Both of these buttons are styled as nice big blue primary buttons. Which can be confusing when confirming a release, it would be good if the destructive button could be styled as a secondary button.

Reading the code, I can see that the decline can be undone but it's not clear in the UI so can lead to undue angst if you don't realise this an almost click the wrong button.

Attachments (1)

Screenshot 2025-12-10 at 4.20.42 pm.png​ (13.2 KB) - added by dd32 3 weeks ago.

Download all attachments as: .zip

Change History (6)

#1 @Otto42
3 weeks ago

Yeah, those release buttons can be scary. :)

#2 @dd32
3 weeks ago

IIRC this might've happened during the Block themeification, I believe prior to that they were primary/secondary, but I think the block theme didn't have the non-primary button style.

This ticket was mentioned in ​PR #532 on ​WordPress/wordpress.org by ​@manhphucofficial.


3 weeks ago
#3

  • Keywords has-patch added

This change styles the destructive “Discard” release button as a secondary button, so it no longer appears the same as the primary “Confirm” action.

It keeps the existing behaviour intact and only adjusts the visual hierarchy of the actions.

Fixes: https://meta.trac.wordpress.org/ticket/8142

​@manhphucofficial commented on ​PR #532:


3 weeks ago
#4

Thanks for the feedback!

You were absolutely right — my initial change only updated the class and didn't adjust the visual styling.

I've updated the PR to:

  • Add a dedicated .discard-release style to the wporg-plugins-2024 theme so the “Discard” button correctly appears as a secondary/outline action.
  • Keep the “Confirm” button as the primary action.

The “Discard” button now reflects the intended secondary hierarchy in the release confirmation dialog.
Happy to refine the styling or selectors further if needed!

#5 @dd32
3 weeks ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 14620:

Plugin Directory: Release confirmation: Style the discard button in a more secondary colour.

Fixes #8142.

Note: See TracTickets for help on using tickets.