mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Merge "Use new TabSelectWidget in link inspector"
This commit is contained in:
commit
14f9edc493
|
@ -48,11 +48,11 @@ ve.ui.MWLinkAnnotationInspector.prototype.initialize = function () {
|
|||
} );
|
||||
this.externalAnnotationInput = new ve.ui.MWExternalLinkAnnotationWidget();
|
||||
|
||||
this.linkTypeSelect = new OO.ui.ButtonSelectWidget( {
|
||||
this.linkTypeSelect = new OO.ui.TabSelectWidget( {
|
||||
classes: [ 've-ui-mwLinkAnnotationInspector-linkTypeSelect' ],
|
||||
items: [
|
||||
new OO.ui.ButtonOptionWidget( { framed: false, data: 'internal', label: ve.msg( 'visualeditor-linkinspector-button-link-internal' ) } ),
|
||||
new OO.ui.ButtonOptionWidget( { framed: false, data: 'external', label: ve.msg( 'visualeditor-linkinspector-button-link-external' ) } )
|
||||
new OO.ui.TabOptionWidget( { data: 'internal', label: ve.msg( 'visualeditor-linkinspector-button-link-internal' ) } ),
|
||||
new OO.ui.TabOptionWidget( { data: 'external', label: ve.msg( 'visualeditor-linkinspector-button-link-external' ) } )
|
||||
]
|
||||
} );
|
||||
|
||||
|
|
|
@ -5,17 +5,6 @@
|
|||
* @license The MIT License (MIT); see LICENSE.txt
|
||||
*/
|
||||
|
||||
.ve-ui-mwLinkAnnotationInspector-linkTypeSelect .oo-ui-buttonOptionWidget .oo-ui-buttonElement-button {
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding: 0 0.5em;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.ve-ui-mwLinkAnnotationInspector-linkTypeSelect .oo-ui-optionWidget-selected .oo-ui-buttonElement-button {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.ve-ui-mwLinkAnnotationInspector .oo-ui-iconElement-icon {
|
||||
opacity: 0.4;
|
||||
.ve-ui-mwLinkAnnotationInspector-linkTypeSelect {
|
||||
margin: -0.75em -0.75em 0.75em -0.75em;
|
||||
}
|
Loading…
Reference in a new issue