Skip to content

Commit

Permalink
fix: change default role to more generic type for better extendibility (
Browse files Browse the repository at this point in the history
  • Loading branch information
wsuwt authored Nov 30, 2021
1 parent 55c1008 commit fe999dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/elements/src/checkbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Checkbox extends ControlElement {
return VERSION;
}

protected readonly defaultRole = 'checkbox';
protected readonly defaultRole: string | null = 'checkbox';

/**
* A `CSSResultGroup` that will be used
Expand Down
2 changes: 1 addition & 1 deletion packages/elements/src/radio-button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class RadioButton extends ControlElement {
return VERSION;
}

protected readonly defaultRole = 'radio';
protected readonly defaultRole: string | null = 'radio';

/**
* A `CSSResultGroup` that will be used
Expand Down
2 changes: 1 addition & 1 deletion packages/elements/src/toggle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Toggle extends ControlElement {
return VERSION;
}

protected readonly defaultRole = 'switch';
protected readonly defaultRole: string | null = 'switch';

/**
* Label of toggle checked
Expand Down

0 comments on commit fe999dc

Please sign in to comment.