Page MenuHomePhabricator

Flow: "Thanked" item doesn't appear disabled after Thanking
Closed, ResolvedPublic

Description

After thanking someone, the Thank post action link changes to "Thanked" and goes dead (good), but appears with the same #666 color as the other post actions "Reply · Edit". "Thanked" should appear disabled with the light gray disabled color, which is #CCC for a disabled quiet button like Preview (class="mw-ui-button mw-ui-quiet" disabled="disabled"). This is a regression, see
https://trello-attachments.s3.amazonaws.com/52cb2bb5b4f69841496a78fd/53a9bb9f7f51873704c4bfe3/177x36/2eace562b77cd752677564abd02f2827/Flow_thank.gif

Adding the disabled attribute to a span is improper HTML. I guess we could have class=mw-ui-disabled . The LSG section for Text and anchors http://tools.wmflabs.org/styleguide/desktop/section-6.html doesn't give examples of disabled text/anchors , its should.


Version: master
Severity: enhancement

Details

Reference
bz69633

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:35 AM
bzimport set Reference to bz69633.
bzimport added a subscriber: Unknown Object (MLST).

mw-ui-disabled doesn't exist.
Anchor links cannot be disabled (which makes me wonder if there is a button)
This requires more thought.

Should edit, reply and thank all be mw-ui-active and become mw-ui-quiet when disabled?
Also when are we going to introduce click again to undo?

Adding design tag as this needs some more thought and in current form is too vague.

EBernhardson triaged this task as Medium priority.
EBernhardson set Security to None.

Currently the anchors are #666, the 'Thanked' text is a span that resolves to #898989 which is the default text color of the .flow-post-meta box it is inside. This seems reasonable and addresses the issue of same color for disabled link(its also not a link anymore, just a span).