Skip to content

Commit

Permalink
removed unnecessayu comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fraincs committed Nov 28, 2024
1 parent 53db409 commit 3746f92
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions apps/docs/components/tag/tag.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@property --font-size {
syntax: '<length>';
inherits: false;
initial-value: 1rem;
}

:root {
--hd-tag-font-family: var(--hd-default-font-family);
--hd-tag-font-size: 0.875rem;
Expand Down
8 changes: 4 additions & 4 deletions apps/docs/scripts/generateComponentData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,15 @@ function getFormattedData(data: ComponentDoc[]): ComponentDocWithGroups[] {
// Special handling for the "id" prop
if (key === "id") {
if (prop.type?.name === "string") {
groups.Accessibility[key] = prop; // Group under Accessibility if the type is string
groups.Accessibility[key] = prop;
added = true;
} else {
groups.default[key] = prop; // Group under default for non-string types
groups.default[key] = prop;
added = true;
}
delete props[key]; // Remove it from the props to prevent further processing
delete props[key];

return; // Skip to the next prop
return;
}

// Check each group to see if the prop should be added to it
Expand Down

0 comments on commit 3746f92

Please sign in to comment.