From d5bddeac0f8853651a2056ae5a1c5345aa4ef74e Mon Sep 17 00:00:00 2001 From: Will Eastcott Date: Fri, 10 May 2024 15:04:53 +0100 Subject: [PATCH] Formatting tweaks --- src/components/LabelGroup/index.ts | 10 +++++----- src/components/Menu/index.ts | 10 +++++----- src/components/MenuItem/index.ts | 13 ++++++------- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/src/components/LabelGroup/index.ts b/src/components/LabelGroup/index.ts index 2cf87f48..9a5edf03 100644 --- a/src/components/LabelGroup/index.ts +++ b/src/components/LabelGroup/index.ts @@ -35,11 +35,11 @@ class LabelGroup extends Container { protected _field: Element; - /** - * Creates a new LabelGroup. - * - * @param args - The arguments. - */ + /** + * Creates a new LabelGroup. + * + * @param args - The arguments. + */ constructor(args: Readonly = {}) { super(args); diff --git a/src/components/Menu/index.ts b/src/components/Menu/index.ts index c3672ca5..0755ca0e 100644 --- a/src/components/Menu/index.ts +++ b/src/components/Menu/index.ts @@ -32,11 +32,11 @@ export interface MenuArgs extends ContainerArgs { class Menu extends Container implements IFocusable { protected _containerMenuItems: Container; - /** - * Creates a new Menu. - * - * @param args - The arguments. - */ + /** + * Creates a new Menu. + * + * @param args - The arguments. + */ constructor(args: Readonly = {}) { super({ tabIndex: 1, ...args }); diff --git a/src/components/MenuItem/index.ts b/src/components/MenuItem/index.ts index 2a707781..11fb6ac5 100644 --- a/src/components/MenuItem/index.ts +++ b/src/components/MenuItem/index.ts @@ -73,11 +73,11 @@ class MenuItem extends Container implements IBindable { protected _renderChanges: boolean; - /** - * Creates a new MenuItem. - * - * @param args - The arguments. - */ + /** + * Creates a new MenuItem. + * + * @param args - The arguments. + */ constructor(args: Readonly = {}) { super(args); @@ -179,8 +179,7 @@ class MenuItem extends Container implements IBindable { } /** - * Selects the MenuItem which also happens automatically - * when the user clicks on the MenuItem. + * Selects the MenuItem which also happens automatically when the user clicks on the MenuItem. */ select() { if (!this.enabled) return;