From 6bb45bcb75efc45389b36e2905a70389c36b72e6 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sat, 9 Jan 2021 14:21:40 +0100 Subject: [PATCH] Adjust highlights (#4354) --- packages/react-components/src/Badge.tsx | 2 +- packages/react-components/src/Table/Head.tsx | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/packages/react-components/src/Badge.tsx b/packages/react-components/src/Badge.tsx index 9cc8a53d49..a83588c074 100644 --- a/packages/react-components/src/Badge.tsx +++ b/packages/react-components/src/Badge.tsx @@ -36,7 +36,7 @@ function Badge ({ className = '', color = 'normal', hover, icon, info, isSmall, className={`ui--Badge${hover ? ' isTooltip' : ''}${isSmall ? ' isSmall' : ''}${onClick ? ' isClickable' : ''}${isHighlight ? ' highlight--bg' : ''}${color === 'counterInvert' ? ' highlight--bg-contrast highlight--color' : ''} ${color}Color ${className}`} onClick={onClick} > - {info || (icon && )} +
{info || (icon && )}
{hover && ( void)?]; interface Props { @@ -36,7 +38,15 @@ function Head ({ className = '', filter, header, isEmpty }: Props): React.ReactE onClick={onClick} > {index === 0 - ?

{label}

+ ? ( +

+ + {label} +

+ ) : isEmpty ? '' : label @@ -64,6 +74,14 @@ export default React.memo(styled(Head)(({ theme }: ThemeProps) => ` font-size: 1.75rem; } + h1 { + .ui--Icon { + font-size: 1rem; + margin-right: 0.5rem; + vertical-align: middle; + } + } + &:first-child { border-left: 1px solid ${theme.borderTable}; }