Skip to content

Commit

Permalink
fix(documentation): remove console.log (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidritter-dotcom committed Jun 12, 2024
1 parent 48352e8 commit 7c69f84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ function renderTextarea(args: Args, context: StoryContext) {
[args.sizeFloatingLabel]: args.floatingLabel,
[args.validation]: args.validation,
});
console.log(classes);
const useAriaLabel = !args.floatingLabel && args.hiddenLabel;
const label = !useAriaLabel
? html` <label for=${context.id} class="form-label">${args.label}</label> `
Expand Down
3 changes: 1 addition & 2 deletions packages/documentation/src/utils/map-classes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export function mapClasses(classObject: Record<string, boolean>): string {
return Object.entries(classObject)
.filter(([_newClass, shouldAddClass]) => shouldAddClass)
.filter(([_newClass, shouldAddClass]) => shouldAddClass && _newClass !== 'null')
.map(([newClass]) => newClass)
.filter(c => c !== 'null')
.join(' ');
}

0 comments on commit 7c69f84

Please sign in to comment.