Skip to content

Commit 9c0c963

Browse files
refactor(plugins): improve extensions dialog UI (openscd#538)
1 parent 4fd993d commit 9c0c963

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

src/Plugging.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,17 @@ export function Plugging<TBase extends new (...args: any[]) => EditingElement>(
451451
>
452452
</mwc-button>
453453
<mwc-button
454-
raised
454+
slot="secondaryAction"
455+
icon=""
456+
label="${translate('close')}"
457+
dialogAction="close"
458+
></mwc-button>
459+
<mwc-button
460+
outlined
455461
trailingIcon
456462
slot="primaryAction"
457463
icon="library_add"
458-
label="${translate('add')}&hellip;"
464+
label="${translate('plugins.add.heading')}&hellip;"
459465
@click=${() => this.pluginDownloadUI.show()}
460466
>
461467
</mwc-button>

test/integration/__snapshots__/open-scd.test.snap.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,10 +875,17 @@ snapshots["open-scd looks like its snapshot"] =
875875
style="--mdc-theme-primary: var(--mdc-theme-error)"
876876
>
877877
</mwc-button>
878+
<mwc-button
879+
dialogaction="close"
880+
icon=""
881+
label="Close"
882+
slot="secondaryAction"
883+
>
884+
</mwc-button>
878885
<mwc-button
879886
icon="library_add"
880-
label="Add…"
881-
raised=""
887+
label="Add custom extension…"
888+
outlined=""
882889
slot="primaryAction"
883890
trailingicon=""
884891
>

0 commit comments

Comments
 (0)