We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 035a4bc commit 8e7e44aCopy full SHA for 8e7e44a
packages/checkbox/src/utils/getLgIds.ts
@@ -3,11 +3,10 @@ import { LgIdString } from '@leafygreen-ui/lib';
3
export const DEFAULT_LGID_ROOT = 'lg-checkbox';
4
5
export const getLgIds = (root: LgIdString = DEFAULT_LGID_ROOT) => {
6
- return {
+ const ids = {
7
root,
8
- label: `${root}-label`,
9
- description: `${root}-description`,
10
} as const;
+ return ids;
11
};
12
13
export type GetLgIdsReturnType = ReturnType<typeof getLgIds>;
0 commit comments