@zanichelli/albe-web-components 19.6.0 → 19.6.1

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [19.6.1](https://github.com/ZanichelliEditore/design-system/compare/v19.6.0...v19.6.1) (2026-07-02)
6
+
5
7
  ## [19.6.0](https://github.com/ZanichelliEditore/design-system/compare/v19.5.0...v19.6.0) (2026-07-01)
6
8
 
7
9
 
@@ -337,9 +337,8 @@ const ZButton = class {
337
337
  var _a, _b;
338
338
  const normalizedAriaLabel = ((_a = this.ariaLabel) === null || _a === void 0 ? void 0 : _a.trim()) || undefined;
339
339
  const normalizedRole = this.htmlrole || ((_b = this.role) === null || _b === void 0 ? void 0 : _b.trim()) || undefined;
340
- const shouldRenderAsLink = normalizedRole === "link";
341
- if (this.href || shouldRenderAsLink) {
342
- return (index$1.h("a", Object.assign({}, this.attributes, { "aria-label": normalizedAriaLabel, href: this.href || "#", target: this.target }), this.renderIcon(), index$1.h("slot", null)));
340
+ if (this.href) {
341
+ return (index$1.h("a", Object.assign({}, this.attributes, { "aria-label": normalizedAriaLabel, href: this.href, target: this.target }), this.renderIcon(), index$1.h("slot", null)));
343
342
  }
344
343
  return (index$1.h("button", Object.assign({}, this.attributes, { "aria-label": normalizedAriaLabel, name: this.name, type: this.type, disabled: this.disabled, role: normalizedRole }), this.renderIcon(), index$1.h("slot", null)));
345
344
  }