Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -1242,16 +1242,13 @@ |
1243 | 1243 | } |
1244 | 1244 | |
1245 | 1245 | .previewnote { |
1246 | | - text-indent: 3em; |
1247 | 1246 | color: #c00; |
1248 | | - border-bottom: 1px solid #aaa; |
1249 | | - padding-bottom: 1em; |
1250 | 1247 | margin-bottom: 1em; |
1251 | 1248 | } |
1252 | 1249 | |
1253 | 1250 | .previewnote p { |
1254 | | - margin: 0; |
1255 | | - padding: 0; |
| 1251 | + text-indent: 3em; |
| 1252 | + margin: 0.8em 0; |
1256 | 1253 | } |
1257 | 1254 | |
1258 | 1255 | .editExternally { |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1797,12 +1797,16 @@ |
1798 | 1798 | } |
1799 | 1799 | } |
1800 | 1800 | |
1801 | | - $previewhead = '<h2>' . htmlspecialchars( wfMsg( 'preview' ) ) . "</h2>\n" . |
1802 | | - "<div class='previewnote'>" . $wgOut->parse( $note ) . "</div>\n"; |
1803 | | - if ( $this->isConflict ) { |
1804 | | - $previewhead .='<h2>' . htmlspecialchars( wfMsg( 'previewconflict' ) ) . "</h2>\n"; |
| 1801 | + if( $this->isConflict ) { |
| 1802 | + $conflict = '<h2 id="mw-previewconflict">' . htmlspecialchars( wfMsg( 'previewconflict' ) ) . "</h2>\n"; |
| 1803 | + } else { |
| 1804 | + $conflict = '<hr />'; |
1805 | 1805 | } |
1806 | 1806 | |
| 1807 | + $previewhead = "<div class='previewnote'>\n" . |
| 1808 | + '<h2 id="mw-previewheader">' . htmlspecialchars( wfMsg( 'preview' ) ) . "</h2>" . |
| 1809 | + $wgOut->parse( $note ) . $conflict . "</div>\n"; |
| 1810 | + |
1807 | 1811 | wfProfileOut( __METHOD__ ); |
1808 | 1812 | return $previewhead . $previewHTML; |
1809 | 1813 | } |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1479,7 +1479,7 @@ |
1480 | 1480 | * to ensure that client-side caches don't keep obsolete copies of global |
1481 | 1481 | * styles. |
1482 | 1482 | */ |
1483 | | -$wgStyleVersion = '218'; |
| 1483 | +$wgStyleVersion = '219'; |
1484 | 1484 | |
1485 | 1485 | |
1486 | 1486 | # Server-side caching: |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -127,6 +127,7 @@ |
128 | 128 | * (bug 16912) Tooltips on images with link= disappear |
129 | 129 | * (bug 18389) Localise numbers in EXIF data |
130 | 130 | * (bug 18522) Wrap MediaWiki:Protect-cascadeon in a div for identification |
| 131 | +* (bug 18438) Tweak HTML for preview bar for consistency and accessibility |
131 | 132 | |
132 | 133 | == API changes in 1.16 == |
133 | 134 | |