Last modified: 2013-05-07 21:53:30 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 T50197, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48197 - [Regression] skin: errorbox text should not be bold by default
[Regression] skin: errorbox text should not be bold by default
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.22.0
All All
: High major (vote)
: ---
Assigned To: Krinkle
: code-update-regression, design
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-07 04:40 UTC by spage
Modified: 2013-05-07 21:53 UTC (History)
5 users (show)

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


Attachments

Description spage 2013-05-07 04:40:28 UTC
Change-Id: If606203218ece5974a956a3d41d5db40f55b2d5c fixed bug 33438 (misuse of <strong> in SpecialPreferences.php's successbox) by making *all* errorbox, successbox, and warningbox text bold, even in the many forms that don't want this.

In particular, this makes Create account form errors, which can go on for paragraphs (e.g. those from the AntiSpoof extension), into swaths of ugly bold text.  And to fix 47691 I added a <strong>Account creation error</strong> to Create account's errorbox, but now this heading is indistinguishable from the error text.

The change to skins/common/shared.css needs to be reverted. Forms that want bold text in {error,success,warning}box should either apply an additional CSS style (e.g. a .mw-bold utility style), or use a CSS selector (e.g. .mw-special-Preferences .successbox) that only bolds in forms that want it.
Comment 1 Steven Walling 2013-05-07 04:49:58 UTC
Yeah there's no reason all of the text should be bold in an error or success box. Only the header needs this, at most.
Comment 2 ganeshaditya1 2013-05-07 05:00:05 UTC
how about if we add a 
.successbox hx{
font-weight: bold;
} 
and similar code to error box and other boxes as well ?

or I can't really think of any case where the text in a successbox would run into paragraphs of text(I have seen very little code of mediawiki)unlike the error box. so we should add font-weight: bold only to the successbox ?
Comment 3 Gerrit Notification Bot 2013-05-07 07:30:17 UTC
Related URL: https://gerrit.wikimedia.org/r/62571 (Gerrit Change I1a3d774c2daef158176479fba7828b383a195bb9)
Comment 4 Fomafix 2013-05-07 08:28:05 UTC
A simple solution is to restore the <strong> in includes/specials/SpecialPreferences.php but without the \n:

  <div class="successbox"><strong>$1</strong></div>

Then no <p> tags are generated and the HTML is standard compliant.
Comment 5 Bartosz Dziewoński 2013-05-07 14:34:09 UTC
Ganeshaditya's change I1a3d774c linked above uses a different solution, but IMO a fine one as well.

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


Navigation
Links