Skip to content

Commit 598988b

Browse files
fix(../substation/general-equipment-editor.ts):action-icon_is_rendered (openscd#1122)
* fix(../substation/general-equipment-editor.ts):action-icon_is_rendered * fix(../substation/general-equipment-editor.ts):adapted_buttons_rendering
1 parent 2d1464f commit 598988b

File tree

2 files changed

+23
-33
lines changed

2 files changed

+23
-33
lines changed

src/editors/substation/general-equipment-editor.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,19 @@ export class GeneralEquipmentEditor extends LitElement {
169169
</action-pane>`;
170170

171171
return html`<action-icon label=${this.header}>
172-
<abbr slot="action" title="${translate('edit')}">
173-
<mwc-fab
172+
<mwc-icon slot="icon">${generalConductingEquipmentIcon}</mwc-icon>
173+
<mwc-fab
174+
slot="action"
174175
mini
175-
icon="edit"
176-
@click=${() => this.openEditWizard()}
177-
></mwc-fab
178-
</abbr>
179-
<abbr slot="action" title="${translate('remove')}">
180-
<mwc-fab
176+
icon="edit"
177+
@click="${() => this.openEditWizard()}}"
178+
></mwc-fab>
179+
<mwc-fab
180+
slot="action"
181181
mini
182-
icon="delete"
183-
@click=${() => this.remove()}
184-
></mwc-fab>
185-
</abbr>
186-
<mwc-icon slot="icon">${generalConductingEquipmentIcon}</mwc-icon>
182+
icon="delete"
183+
@click="${() => this.remove()}}"
184+
></mwc-fab>
187185
</action-icon>`;
188186
}
189187

test/unit/editors/substation/__snapshots__/general-equipment-editor.test.snap.js

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,20 @@ snapshots["Editor web component for GeneralEquipment SCL element rendered as act
66
label="genSub"
77
tabindex="0"
88
>
9-
<abbr
9+
<mwc-icon slot="icon">
10+
</mwc-icon>
11+
<mwc-fab
12+
icon="edit"
13+
mini=""
1014
slot="action"
11-
title="[edit]"
1215
>
13-
<mwc-fab
14-
icon="edit"
15-
mini=""
16-
>
17-
</mwc-fab>
18-
<abbr
19-
slot="action"
20-
title="[remove]"
21-
>
22-
<mwc-fab
23-
icon="delete"
24-
mini=""
25-
>
26-
</mwc-fab>
27-
</abbr>
28-
<mwc-icon slot="icon">
29-
</mwc-icon>
30-
</abbr>
16+
</mwc-fab>
17+
<mwc-fab
18+
icon="delete"
19+
mini=""
20+
slot="action"
21+
>
22+
</mwc-fab>
3123
</action-icon>
3224
`;
3325
/* end snapshot Editor web component for GeneralEquipment SCL element rendered as action icon looks like the latest snapshot */

0 commit comments

Comments
 (0)