mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Make the ET2Button container accepting external css rules using ::part to get buttons in NM in shape (This should be avoided after NM is a WC)
This commit is contained in:
parent
282c01f62e
commit
4cf9c109d8
@ -208,7 +208,7 @@ export class Et2Button extends Et2InputWidget(SlotMixin(LionButton))
|
||||
this._iconNode.src = this._image;
|
||||
if (!this._label) this._iconNode.classList.add('imageOnly');
|
||||
return html`
|
||||
<div class="button-content et2_button ${this._label?'':'imageOnly'}" id="${this._buttonId}">
|
||||
<div class="button-content et2_button ${this._label?'':'imageOnly'}" id="${this._buttonId}" part="container">
|
||||
<slot name="icon" class="${this._label?'':'imageOnly'}"></slot>
|
||||
<slot name="label">${this._label}</slot>
|
||||
</div> `;
|
||||
|
@ -2795,6 +2795,14 @@ div.et2_toolbar_more h.ui-accordion-header.header_list-short span.ui-accordion-h
|
||||
}
|
||||
.nextmatch_header_row et2-button, .et2_toolbar et2-button {
|
||||
background-color: #fafafa;
|
||||
margin: 1px 4px 0 0;
|
||||
border-color: silver;
|
||||
}
|
||||
.nextmatch_header_row et2-button::part(container){
|
||||
height: 18px;
|
||||
}
|
||||
.nextmatch_header_row et2-button img {
|
||||
width: 16px;
|
||||
}
|
||||
.et2_toolbar .et2_toolbar_actionlist button.et2_button_with_image.et2_toolbar_hasCaption, .nextmatch_header_row .et2_button_text {
|
||||
width: auto;
|
||||
|
Loading…
Reference in New Issue
Block a user