Page MenuHomePhabricator

`Delete` buttons in Special:SecurePoll/edit should be red / destructive
Closed, ResolvedPublic

Description

When creating or editing a poll in SecurePoll, the buttons to delete questions or options are blue / progressive. They should be red / destructive to match the style guide (since they're destructive in nature).

Screenshot 2021-04-06 at 3.21.27 PM.png (161×156 px, 7 KB)

Event Timeline

jrbs triaged this task as Low priority.Apr 6 2021, 10:29 PM
jrbs created this task.

@jrbs I would like to work on issue.
So after fixing , I need to create new branch with fix or push to any other branch

Hi! I have set up the repo but couldn't locate the exact target. Can u help me with the name of the file in SecurePoll?

Change 704791 had a related patch set uploaded (by Samtar; author: Samtar):

[mediawiki/extensions/SecurePoll@master] Changed delete buttons to oo-ui-flaggedElement-destructive

https://gerrit.wikimedia.org/r/704791

@Prtksxna: 👋 I've tested @Samtar's change and it LGTM. Could I get your sign off?

@Prtksxna: 👋 I've tested @Samtar's change and it LGTM. Could I get your sign off?

Thanks for tagging me here! Changing to destructive seems like a good idea, but I think we need to drop the primary. So the button should look something like (image from demo page):

Screenshot 2021-08-02 at 9.18.03 AM.png (134×408 px, 15 KB)

Change 704791 merged by jenkins-bot:

[mediawiki/extensions/SecurePoll@master] Changed delete buttons to oo-ui-flaggedElement-destructive (non-primary)

https://gerrit.wikimedia.org/r/704791