mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Adjust use of 'plainlinks' class to fix button styling in some cases
It was previously applied on the whole wrapper of the anon
warning, including the buttons. In some cases (on mobile, and
on some sites with weird customized site CSS), this causes the
buttons to lose some styling. Apply it only on the label.
Follow-up to 522b7932d7
.
Bug: T270536
Bug: T291000
Change-Id: Ia4bc99fc219a80efbf46a7cc196ea29720a34de8
This commit is contained in:
parent
4c39068eb3
commit
3dbc5749ea
|
@ -212,7 +212,7 @@ function ReplyWidget( commentController, comment, commentDetails, config ) {
|
|||
returnto: mw.config.get( 'wgPageName' )
|
||||
};
|
||||
this.anonWarning = new OO.ui.MessageWidget( {
|
||||
classes: [ 'ext-discussiontools-ui-replyWidget-anonWarning plainlinks' ],
|
||||
classes: [ 'ext-discussiontools-ui-replyWidget-anonWarning' ],
|
||||
type: 'warning',
|
||||
label: mw.message( 'discussiontools-replywidget-anon-warning' )
|
||||
.params( [
|
||||
|
@ -222,6 +222,7 @@ function ReplyWidget( commentController, comment, commentDetails, config ) {
|
|||
.parseDom()
|
||||
} );
|
||||
this.anonWarning.$element.append( this.$actions );
|
||||
this.anonWarning.$label.addClass( 'plainlinks' );
|
||||
this.$element.append( this.anonWarning.$element, this.$footer );
|
||||
this.$actionsWrapper.detach();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue