Merge "Invert template search result highlighting"

This commit is contained in:
jenkins-bot 2021-05-17 12:30:49 +00:00 committed by Gerrit Code Review
commit a01b56bcf1
2 changed files with 13 additions and 0 deletions

View file

@ -69,6 +69,11 @@ ve.ui.MWTransclusionDialog = function VeUiMWTransclusionDialog( config ) {
if ( this.isBigger ) {
this.$element.addClass( 've-ui-mwTransclusionDialog-bigger' );
}
// Temporary change bolding while feature flag is in place.
if ( mw.config.get( 'wgVisualEditorConfig' ).templateSearchImprovements ) {
this.$element.addClass( 've-ui-mwTransclusionDialog-enhancedSearch' );
}
};
/* Inheritance */

View file

@ -38,6 +38,14 @@
white-space: nowrap;
}
.ve-ui-mwTransclusionDialog-enhancedSearch .mw-widget-titleWidget-menu-withDescriptions .mw-widget-titleOptionWidget .oo-ui-labelElement-label {
font-weight: bold;
}
.ve-ui-mwTransclusionDialog-enhancedSearch .mw-widget-titleWidget-menu-withDescriptions .mw-widget-titleOptionWidget .oo-ui-labelElement-label .oo-ui-labelElement-label-highlight {
font-weight: normal;
}
.ve-ui-mwTemplateDialog .oo-ui-outlineOptionWidget.oo-ui-flaggedElement-empty .oo-ui-iconElement-icon {
opacity: 0.51;
}