From 982ad39ef355f34ec0422614094a7dfa50656249 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Mon, 2 Dec 2019 19:46:24 +0800 Subject: [PATCH] fix: icon alignments --- src/components/Icon.tsx | 2 +- src/content.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index eaaf357..1407dbc 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -133,7 +133,7 @@ export function Icon({ type, className = undefined, placeholder, ...otherProps } {React.createElement(Octicon, { icon: IconComponent, className: mergedClassName, - verticalAlign: 'middle', + verticalAlign: 'text-bottom', })} ) diff --git a/src/content.less b/src/content.less index b6ea0e2..81f6ee7 100644 --- a/src/content.less +++ b/src/content.less @@ -362,7 +362,7 @@ width: 16px; height: 16px; object-fit: contain; - vertical-align: middle; + vertical-align: text-bottom; padding-left: 4px; box-sizing: content-box;