Skip to content

Commit 46baaa6

Browse files
Update core/src/components/button/button.tsx
Co-authored-by: Brandy Smith <[email protected]>
1 parent 84b7749 commit 46baaa6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/components/button/button.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ export class Button implements ComponentInterface, AnchorInterface, ButtonInterf
233233
}
234234

235235
/**
236-
* Set the size based if the button is inside of an item, the default size is "small"
236+
* Get the default size. If size is unset and the button is inside an item,
237+
* the default size is "small". Otherwise, it uses the value of size.
237238
*/
238239
private getSize(): string | undefined {
239240
const { size } = this;

0 commit comments

Comments
 (0)