Skip to content

Commit

Permalink
fix(dialog): swap secondary and cancel button order
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiortmanns authored and Westbrook committed Aug 10, 2022
1 parent 7043349 commit 3df1705
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/dialog/src/DialogWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,27 +255,27 @@ export class DialogWrapper extends FocusVisiblePolyfillMixin(SpectrumElement) {
<div slot="footer">${this.footer}</div>
`
: html``}
${this.secondaryLabel
${this.cancelLabel
? html`
<sp-button
variant="primary"
variant="secondary"
treatment="outline"
slot="button"
@click=${this.clickSecondary}
@click=${this.clickCancel}
>
${this.secondaryLabel}
${this.cancelLabel}
</sp-button>
`
: html``}
${this.cancelLabel
${this.secondaryLabel
? html`
<sp-button
variant="secondary"
variant="primary"
treatment="outline"
slot="button"
@click=${this.clickCancel}
@click=${this.clickSecondary}
>
${this.cancelLabel}
${this.secondaryLabel}
</sp-button>
`
: html``}
Expand Down

0 comments on commit 3df1705

Please sign in to comment.