Page MenuHomePhabricator

In Apex theme, any iconless widget placed inside any iconed widget renders incorrectly
Closed, ResolvedPublic

Assigned To
Authored By
matmarex
Oct 16 2017, 8:35 PM
Referenced Files
F10265247: image.png
Oct 16 2017, 8:35 PM
F10265139: image.png
Oct 16 2017, 8:35 PM

Description

In Apex theme, seemingly any iconless widget placed inside seemingly any iconed widget renders incorrectly.

This CSS block unexpectedly applies to the nested widget's .oo-ui-iconElement, causing it to appear (often missing a lot of styles) when it should be hidden:

.oo-ui-widget.oo-ui-iconElement .oo-ui-iconElement-icon,
.oo-ui-widget.oo-ui-indicatorElement .oo-ui-indicatorElement-indicator {
    display: block;
}

Similar problem presumably affects indicators, although I guess that's less common.

Examples seen in the wild:

DropdownWidget > MenuOptionWidget:
https://doc.wikimedia.org/oojs-ui/master/demos/?page=widgets&theme=apex&direction=ltr&platform=desktop#DropdownWidget-disabled-options

image.png (653×352 px, 14 KB)

ve.ui.LinearContextItem > ButtonWidget:
https://en.wikipedia.beta.wmflabs.org/wiki/User:RYasmeen_(WMF)/sandbox?veaction=edit&useskin=monobook

image.png (413×112 px, 10 KB)

Details

Related Changes in Gerrit:

Event Timeline

Change 384607 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[VisualEditor/VisualEditor@master] ve.ui.LinearContextItem: Workaround for T178336

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

Change 384437 had a related patch set uploaded (by Bartosz Dziewoński; owner: VolkerE):
[oojs/ui@master] themes: Unify icon/indicator visibility

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

Change 384607 merged by jenkins-bot:
[VisualEditor/VisualEditor@master] ve.ui.LinearContextItem: Workaround for T178336

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

Change 384437 merged by jenkins-bot:
[oojs/ui@master] themes: Unify icon/indicator visibility

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

matmarex assigned this task to Volker_E.
matmarex edited projects, added: Regression; removed: Patch-For-Review.