From 7bf2b590dd247283df849247829bdc25a86bcfcf Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Tue, 20 Sep 2022 10:51:51 -0400 Subject: [PATCH] Standarize icon styling --- .../src/components/Collection/Sidebar.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/netlify-cms-core/src/components/Collection/Sidebar.js b/packages/netlify-cms-core/src/components/Collection/Sidebar.js index 33113ac8..54016b27 100644 --- a/packages/netlify-cms-core/src/components/Collection/Sidebar.js +++ b/packages/netlify-cms-core/src/components/Collection/Sidebar.js @@ -88,6 +88,19 @@ const AdditionalLink = styled.a` } `; +const IconWrapper = styled.div` + height: 24px; + width: 24px; + display: flex; + align-items: center; + justify-content: center; + margin-right: 8px; + + > span { + margin-right: 0; + } +`; + export class Sidebar extends React.Component { static propTypes = { collections: ImmutablePropTypes.map.isRequired, @@ -144,7 +157,7 @@ export class Sidebar extends React.Component { return (
  • - {icon} + {icon} {title}
  • @@ -179,7 +192,7 @@ export class Sidebar extends React.Component { activeClassName="sidebar-active" data-testid={collectionName} > - {icon} + {icon} {collection.get('label')}