Makes heading flex layout, with icon compatibility
This commit is contained in:
@@ -14,6 +14,13 @@ interface HeadingProps {
|
|||||||
const StyledHeading = styled.h1<HeadingProps>`
|
const StyledHeading = styled.h1<HeadingProps>`
|
||||||
margin: 0.5rem 0;
|
margin: 0.5rem 0;
|
||||||
text-shadow: 2px 2px 0px ${colors.bgShadowColor};
|
text-shadow: 2px 2px 0px ${colors.bgShadowColor};
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
align-items: center;
|
||||||
|
img {
|
||||||
|
width: 2rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
${props => {
|
${props => {
|
||||||
switch (props.size) {
|
switch (props.size) {
|
||||||
case 'xSmall': return `font-size: ${TextSizes.small};`;
|
case 'xSmall': return `font-size: ${TextSizes.small};`;
|
||||||
|
|||||||
Reference in New Issue
Block a user