Merge "Fix borders of bundled notifications inside a bundle"

This commit is contained in:
jenkins-bot 2024-01-02 13:00:26 +00:00 committed by Gerrit Code Review
commit 8641483ac4
2 changed files with 10 additions and 4 deletions

View file

@ -32,9 +32,13 @@
}
}
}
}
.mw-echo-ui-sortedListWidget {
/* stylelint-disable no-descending-specificity */
.mw-echo-ui-subGroupListWidget,
.mw-echo-ui-bundleNotificationItemWidget-group {
.mw-echo-ui-sortedListWidget-group:not( :empty ) {
border: @border-width-base @border-style-base @border-color-subtle;
margin-bottom: @bundle-group-padding / 2;
}
}
/* stylelint-enable no-descending-specificity */

View file

@ -34,10 +34,12 @@
this.animated = !!config.animated;
// Initialization
this.setGroupElement( config.$group || this.$element );
this.setGroupElement( config.$group || $( '<div>' ) );
this.$group.addClass( 'mw-echo-ui-sortedListWidget-group' );
this.$element
.addClass( 'mw-echo-ui-sortedListWidget' );
.addClass( 'mw-echo-ui-sortedListWidget' )
.append( this.$group );
};
/* Initialization */