Skip to content

Commit

Permalink
update iconOnly state to icon
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt committed Jun 14, 2024
1 parent 870f6ab commit 58f4a6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/web-components/src/anchor-button/anchor-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class AnchorButton extends BaseAnchor {
* @param next - the next state
*/
public iconOnlyChanged(prev: boolean, next: boolean) {
toggleState(this.elementInternals, 'iconOnly', next);
toggleState(this.elementInternals, 'icon', next);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/web-components/src/button/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class Button extends FASTElement {
* @param next - the next state
*/
public iconOnlyChanged(prev: boolean, next: boolean) {
toggleState(this.elementInternals, 'iconOnly', next);
toggleState(this.elementInternals, 'icon', next);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/web-components/src/styles/states/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const largeState = css.partial`:is([state--large], :state(large))`;
* Selector for the `iconOnly` state.
* @public
*/
export const iconOnlyState = css.partial`:is([state--iconOnly], :state(iconOnly))`;
export const iconOnlyState = css.partial`:is([state--icon], :state(icon))`;

/**
* Selector for the `pressed` state.
Expand Down

0 comments on commit 58f4a6a

Please sign in to comment.