Skip to content

Commit 01af06d

Browse files
skvalebcullman
authored andcommitted
fix: icon-example-rendering (#391)
1 parent 84ec6a8 commit 01af06d

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/Icon/Icon.Component.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -633,14 +633,18 @@ export const IconComponent = () => {
633633
'zoom-out'
634634
];
635635

636-
let icons = listOfIcons.map((icon, index) => {
637-
return (
638-
<div className='demo-icon-wrapper' key={index}>
639-
<Icon glyph={icon} size='xl' />
640-
<h5>sap-icon--{icon}</h5>
641-
</div>
642-
);
643-
});
636+
let icons = (
637+
<div className='fd-doc__margin--icon'>
638+
{listOfIcons.map((icon, index) => {
639+
return (
640+
<div className='demo-icon-wrapper' key={index}>
641+
<Icon glyph={icon} size='xl' />
642+
<h5>sap-icon--{icon}</h5>
643+
</div>
644+
);
645+
})}
646+
</div>
647+
);
644648

645649
return (
646650
<div>
@@ -674,7 +678,7 @@ export const IconComponent = () => {
674678

675679
<h2>Available Icons</h2>
676680

677-
<DocsTile>{icons}</DocsTile>
681+
<DocsTile centered>{icons}</DocsTile>
678682

679683
<Separator />
680684

0 commit comments

Comments
 (0)