Page MenuHomePhabricator

ButtonWidget (frameless…)‎ to be styled like quiet buttons/normal anchors
Closed, ResolvedPublic

Description

Current:

Screenshot_2015-02-04_15.00.10.png (451×318 px, 39 KB)

These appear to be the same as quiet buttons and anchors but with an icon accompanied with label. Spec here: M37

Event Timeline

violetto assigned this task to Prtksxna.
violetto raised the priority of this task from to Needs Triage.
violetto updated the task description. (Show Details)
violetto subscribed.
Prtksxna set Security to None.
gerritbot subscribed.

Change 189947 had a related patch set uploaded (by Prtksxna):
MediaWiki Theme: Use darker color for frameless buttons

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

Patch-For-Review

Change 189947 merged by jenkins-bot:
MediaWiki Theme: Use darker color for frameless buttons

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

I'm reopening this task because it isn't resolved yet. As far as I can tell, only the disabled button is resolved like described in https://gerrit.wikimedia.org/r/189947.

Yup, the task isn't resolved. Left comments on M37.

Sorry about the confusion!

Change 193790 had a related patch set uploaded (by Prtksxna):
Use the correct color for gray buttons

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

Change 193793 had a related patch set uploaded (by Prtksxna):
Use only 2 variables each for each semantic color

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

Change 193790 merged by jenkins-bot:
Use the correct color for gray buttons

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

Change 193793 merged by jenkins-bot:
Use only two variables each for each semantic color

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

The icons next to the label is still colored on normal state instead of #555.

Screenshot_2015-03-06_00.45.03.png (187×271 px, 24 KB)

In quiet buttons, icons need to be #555 all the time and change color according to their class (progressive, destructive…) on hover.
Is that right @violetto?

@matmarex, is there a way in src/themes/mediawiki/MediaWikiTheme.js to change the icon of the element on hover? Will we have to do this with some crazy filters in the CSS?

Change 196210 had a related patch set uploaded (by Prtksxna):
[wip] Quiet colors on icons for quiet buttons

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

@matmarex, is there a way in src/themes/mediawiki/MediaWikiTheme.js to change the icon of the element on hover? Will we have to do this with some crazy filters in the CSS?

There isn't, because it would be incompatible with PHP OOUI.

There isn't, because it would be incompatible with PHP OOUI.

How do we want to change the icon on hover then? Changing ButtonElement.js for a MediaWiki theme requirement? Does Apex need this anywhere?

@matmarex @TrevorParscal

bump! Just wondering if you guys found a way to change icon svg colors.

There isn't, because it would be incompatible with PHP OOUI.

How do we want to change the icon on hover then? Changing ButtonElement.js for a MediaWiki theme requirement?

Probably. It would need to add some class on hover (or a flag) and remove it on de-hover. It's a pity that this design requirement was not communicated earlier, we would have implemented the system to handle this use case without hacks.

Does Apex need this anywhere?

No. Apex does not have colored icons.

@matmarex, prior to going down svg route vs. icon font, there was a list of requirements communicated here on etherpad and in an email thread with the subject line "Icons into SVGs"

@TrevorParscal should be familiar with the requirements, not sure if he's shared them with you.

I am aware that requirements were communicated. This one, however, wasn't. (There is nothing even in M37 about the required behavior of icon colors.)

If I had known that the design will require the ability to choose the icon variant displayed with no help from JS or PHP logic, with CSS only, I would have made the system more sophisticated to allow it. I hadn't and I didn't, and therefore we will need to implement this in JS logic (or refactor the system).

It can be done, though it will be a bit less neat.

Wondering how you guys are fulfilling the requirement for icon color change that was listed as part of the requirement list? If the said requirement was taken into consideration, I'm curious why would the application on this use case be a hack?

Hey @matmarex, just wanted to get an idea of when we can start seeing icons change color on hover. It's been a while since we last talked about this, it's still a critical issue.

We've been discussing this on T97816 with @Catrope. Sorry, I can't give you a date. I've been reassigned to Multimedia and I'm trying to split my time between that, maintaining OOjs UI, and tieing up my other projects. Please ask somebody who actually has the power to prioritize big changes :)

I appreciate the follow up @matmarex. I'll keep my eyes on T97816

Icons now change on hover, so I presume this is fully resolved.

Change 196210 abandoned by Prtksxna:
[wip] Quiet colors on icons for quiet buttons

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