Page MenuHomePhabricator

HTMLButtonField: Don't hard-code button flags in Codex implementation
Closed, ResolvedPublic1 Estimated Story Points

Description

The Codex implementation of HTMLButtonField always outputs a primary progressive button. But we should instead look at $this->mFlags and set the appropriate CSS classes, so that we can support all types of buttons.

Event Timeline

lwatson set the point value for this task to 1.Mar 18 2024, 5:20 PM

Change 1013143 had a related patch set uploaded (by LWatson; author: LWatson):

[mediawiki/core@master] HTMLButtonField: remove hard-coded button flags in Codex

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

lwatson changed the task status from Open to In Progress.Mar 20 2024, 9:32 PM
lwatson claimed this task.

Change #1013143 merged by jenkins-bot:

[mediawiki/core@master] HTMLButtonField: remove hard-coded button flags in Codex

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