From: Albert221 Date: Mon, 8 Jan 2018 22:18:05 +0000 (+0100) Subject: EditPage: Remove separator between cancel and help X-Git-Tag: 1.31.0-rc.0~952^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=2a4fd6ba8887955642fbf08c97189a6980125416;p=lhc%2Fweb%2Fwiklou.git EditPage: Remove separator between cancel and help It is no longer needed because those buttons are already splitted visually by blank space. Bug: T183672 Change-Id: I1f8a8413a5f4da441e3f4b4ef0b1e03d174987ca --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 3c109f63c1..a8be3aa23d 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3670,11 +3670,6 @@ class EditPage { $out->addHTML( implode( $this->getEditButtons( $tabindex ), "\n" ) . "\n" ); $cancel = $this->getCancelLink(); - if ( $cancel !== '' ) { - $cancel .= Html::element( 'span', - [ 'class' => 'mw-editButtons-pipe-separator' ], - $this->context->msg( 'pipe-separator' )->text() ); - } $message = $this->context->msg( 'edithelppage' )->inContentLanguage()->text(); $edithelpurl = Skin::makeInternalOrExternalUrl( $message ); diff --git a/resources/src/mediawiki.action/mediawiki.action.edit.styles.less b/resources/src/mediawiki.action/mediawiki.action.edit.styles.less index e4443f6384..3202e596e8 100644 --- a/resources/src/mediawiki.action/mediawiki.action.edit.styles.less +++ b/resources/src/mediawiki.action/mediawiki.action.edit.styles.less @@ -69,13 +69,4 @@ display: inline-block; vertical-align: middle; } - - // FIXME: Remove CSS magic together with DOM element in T183672 - .mw-editButtons-pipe-separator { - display: inline-block; - padding-top: 0.625em; - padding-bottom: 0.546875em; - line-height: 1.172em; - vertical-align: middle; - } }