ISSUE-028 - Improved the spacing of Toggle component. Slight reorganization to the OverlayControl component.

This commit is contained in:
Kyle Geib committed 2022-01-18 11:50:02 -05:00
1 parent d575e1c15c
commit 83dec9d782
5 files changed
+21 -21

No files matched your search

@@ -4,7 +4,8 @@ type ToggleContainerProps = {
fontSize?: string;
}
export const ToggleContainer = styled.div<ToggleContainerProps>`
text-align: center;
display: flex;
justify-content: center;
font-size: ${({ fontSize = "inherit" }) => fontSize};
`;
ToggleContainer.displayName = "ToggleContainer";
@@ -13,7 +14,6 @@ export const ToggleBody = styled.div`
position: relative;
display: inline-block;
text-align: left;
top: 0.5em;
`;
ToggleBody.displayName = "ToggleBody";
@@ -22,6 +22,10 @@ export const ToggleInput = styled.input`
`;
ToggleInput.displayName = "ToggleInput";
export const ToggleLabelText = styled.span`
margin-right: 1ch;
`;
export const ToggleLabel = styled.label`
display: block;
overflow: hidden;