Clarify icon sizing rules for NFS icons

Document the IconElement sizing contract, ensure deprecated icon component registrations inherit size correctly, and add changesets for the affected icon migration packages.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-07 18:38:02 +01:00
parent ed8d9ce67c
commit 3f36ce1257
6 changed files with 32 additions and 18 deletions
+1 -9
View File
@@ -45,15 +45,7 @@ export const IconsApi = ApiBlueprint.makeWithOverrides({
return new DefaultIconsApi(
inputs.icons
.map(i => i.get(IconBundleBlueprint.dataRefs.icons))
.reduce(
(acc, bundle) => ({ ...acc, ...bundle }),
Object.fromEntries(
Object.entries(defaultIcons).map(([key, Icon]) => [
key,
<Icon />,
]),
),
),
.reduce((acc, bundle) => ({ ...acc, ...bundle }), defaultIcons),
);
},
}),