Skip to content

Commit

Permalink
Fix expert slot activation with empty label string for button and link.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvg committed Oct 16, 2023
1 parent f275d04 commit a3c54ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/components/button/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export class KolButtonWc implements API {
this.validateIcons(this._icons || this._icon);
this.validateIconAlign(this._iconAlign);
this.validateId(this._id);
this.validateLabel(this._label || this._ariaLabel);
this.validateLabel(this._label ?? this._ariaLabel); // explicitly allow empty string labels
this.validateName(this._name);
this.validateOn(this._on);
this.validateRole(this._role);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/link/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export class KolLinkWc implements API {
this.validateHref(this._href);
this.validateIcon(this._icons || this._icon);
this.validateIconAlign(this._iconAlign);
this.validateLabel(this._label || this._ariaLabel);
this.validateLabel(this._label ?? this._ariaLabel); // explicitly allow empty string labels
this.validateListenAriaCurrent(this._listenAriaCurrent);
this.validateOn(this._on);
this.validateRole(this._role);
Expand Down

0 comments on commit a3c54ab

Please sign in to comment.