Skip to content

Commit

Permalink
Updated defaultbuttonLabel to defaultButtonLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
Jairo Hulshof committed Mar 29, 2024
1 parent f82d34e commit c7d4632
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dialog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class Dialog extends HTMLElement {
title: Config().get("labels.title"),
description: Config().get("labels.description"),
saveButtonText: Config().get("labels.aria.button"),
defaultbuttonLabel: Config().get("labels.button.default"),
defaultButtonLabel: Config().get("labels.button.default"),
acceptAllButton: Config().get("acceptAllButton") && !Preferences().hasPreferences(),
};
// custom content from data-attributes
Expand All @@ -87,7 +87,7 @@ export default class Dialog extends HTMLElement {
? fallbackContent.description : customContent.description,
saveButtonText: customContent.saveButtonText === null
? fallbackContent.saveButtonText : customContent.saveButtonText,
defaultbuttonLabel: fallbackContent.defaultbuttonLabel,
defaultButtonLabel: fallbackContent.defaultButtonLabel,
acceptAllButton: fallbackContent.acceptAllButton,
cookies,
};
Expand Down Expand Up @@ -123,7 +123,7 @@ export default class Dialog extends HTMLElement {
</header>
<form part="${this.config.prefix}__form">
<button part="${this.config.prefix}__button" class="${this.config.prefix}__button" aria-label="${this.data.description}">
<span part="${this.config.prefix}__button-text">${this.data.defaultbuttonLabel}</span>
<span part="${this.config.prefix}__button-text">${this.data.defaultButtonLabel}</span>
</button>
</form>
<!--googleon: all-->
Expand Down

0 comments on commit c7d4632

Please sign in to comment.