-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2ee08b
commit b7a5837
Showing
5 changed files
with
7,380 additions
and
1,400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 6 additions & 10 deletions
16
packages/client/src/client/components/Form/FormControl/Label.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
import styled from "styled-components" | ||
|
||
import { Typography } from "../../Typography" | ||
const LabelText = styled.label( | ||
({ theme }) => theme.newTheme.textStyles["Text xs/Regular"], | ||
) | ||
|
||
const _Label = styled(Typography)` | ||
export const Label = styled(LabelText)` | ||
color: ${({ theme }) => | ||
theme.newTheme.color["Colors/Text/text-tertiary (600)"]}; | ||
margin-bottom: ${({ theme }) => theme.newTheme.spacing.xs}; | ||
` | ||
|
||
export const Label = (props: React.ComponentProps<typeof Typography>) => ( | ||
<_Label | ||
variant="Text xs/Regular" | ||
color="Colors/Text/text-tertiary (600)" | ||
{...props} | ||
/> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.