@fluid-topics/ft-button 1.3.47 → 1.3.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,8 @@ export interface FtBaseButtonProperties {
17
17
  tooltipPosition?: Position;
18
18
  hideTooltip?: boolean;
19
19
  forceTooltip?: boolean;
20
- ariaHasPopupp?: string | null;
20
+ ariaHasPopup?: string | null;
21
+ ariaPressed?: string | null;
21
22
  }
22
23
  declare const FtBaseButton_base: import("@fluid-topics/ft-wc-utils").FtFormComponentType<typeof FtLitElement>;
23
24
  export declare class FtBaseButton extends FtBaseButton_base implements FtBaseButtonProperties {
@@ -33,6 +34,7 @@ export declare class FtBaseButton extends FtBaseButton_base implements FtBaseBut
33
34
  loading: boolean;
34
35
  ariaLabel: string | null;
35
36
  ariaHasPopup: string | null;
37
+ ariaPressed: string | null;
36
38
  tooltipPosition: Position;
37
39
  hideTooltip: boolean;
38
40
  forceTooltip: boolean;
@@ -32,6 +32,7 @@ class FtBaseButton extends toFtFormComponent(FtLitElement) {
32
32
  this.loading = false;
33
33
  this.ariaLabel = null;
34
34
  this.ariaHasPopup = null;
35
+ this.ariaPressed = null;
35
36
  this.tooltipPosition = "bottom";
36
37
  this.hideTooltip = false;
37
38
  this.forceTooltip = false;
@@ -79,6 +80,7 @@ class FtBaseButton extends toFtFormComponent(FtLitElement) {
79
80
  class="${classMap(this.buttonClasses)}"
80
81
  aria-label="${(_c = this.ariaLabel) !== null && _c !== void 0 ? _c : this.getLabel()}"
81
82
  aria-haspopup="${ifDefined(this.ariaHasPopup)}"
83
+ aria-pressed="${ifDefined(this.ariaPressed)}"
82
84
  ?disabled=${this.isDisabled()}>
83
85
  ${content}
84
86
  </button>
@@ -184,6 +186,9 @@ __decorate([
184
186
  __decorate([
185
187
  property()
186
188
  ], FtBaseButton.prototype, "ariaHasPopup", void 0);
189
+ __decorate([
190
+ property({ attribute: "aria-pressed" })
191
+ ], FtBaseButton.prototype, "ariaPressed", void 0);
187
192
  __decorate([
188
193
  property()
189
194
  ], FtBaseButton.prototype, "tooltipPosition", void 0);