Last modified: 2014-11-20 23:10:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75677, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73677 - OOjs UI: Get rid of inline styles in LabelElement
OOjs UI: Get rid of inline styles in LabelElement
Status: PATCH_TO_REVIEW
Product: OOjs UI
Classification: Unclassified
Technical Debt (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-20 22:33 UTC by Bartosz Dziewoński
Modified: 2014-11-20 23:10 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bartosz Dziewoński 2014-11-20 22:33:46 UTC
We should get rid of inline styles in LabelElement.

this.$label.css( 'display', !label ? 'none' : '' );

$this->target->setAttributes( !$label ? array( 'style' => 'display: none;' ) : array() );

Trevor Parscal <tparscal@wikimedia.org> wrote:
> I think this is dumb, it should be done by removing oo-ui-labeledElement  
> the same way we do with icons and indicators - and in all 3 cases this  
> should be done at a higher and more general level. Nonetheless, the  
> point is if you make the label empty empty empty (see first case from  
> above) we want to avoid styles being applied to it (probably?).
>
> I'm less sure about this case, as you can see, but for compatibility  
> don't want to change it until we have a cohesive plan.
Comment 1 Bartosz Dziewoński 2014-11-20 22:48:46 UTC
(In reply to Bartosz Dziewoński from comment #0)
> Trevor Parscal <tparscal@wikimedia.org> wrote:
> > I think this is dumb, it should be done by removing oo-ui-labeledElement  
> > the same way we do with icons and indicators

So, the fun part is, we already do that. So maybe we can just kill the junk and tweak some CSS and that's it.
Comment 2 Gerrit Notification Bot 2014-11-20 23:10:47 UTC
Change 174844 had a related patch set uploaded by Bartosz Dziewoński:
LabelElement: Kill inline styles

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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links