@ariabones/button
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -8,4 +8,4 @@ class s extends HTMLButtonElement { | ||
} | ||
attributeChangedCallback(t, r, e) { | ||
t === "disabled" && (e === "true" ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled")), t === "_type" && e === "toggle" && (this.setAttribute("_", "on click if @aria-pressed equals 'false' set @aria-pressed to 'true' else set @aria-pressed to 'false'"), this.setAttribute("aria-pressed", "false")); | ||
attributeChangedCallback(e, r, t) { | ||
e === "disabled" && (t === "true" ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled")), e === "_type" && (t === "toggle" && (this.setAttribute("_", "on click if @aria-pressed equals 'false' set @aria-pressed to 'true' else set @aria-pressed to 'false'"), this.setAttribute("aria-pressed", "false")), t === "menu" && this.setAttribute("aria-haspopup", "menu")); | ||
} | ||
@@ -12,0 +12,0 @@ } |
{ | ||
"name": "@ariabones/button", | ||
"type": "module", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"author": "Nicolas Accetta", | ||
@@ -6,0 +6,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2015