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:
@@ -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),
|
||||
);
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user