-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix text overlaping select arrow * Update button types * Create mobile flex row * Add mobile flex row * Add flex row to column * Remove unused flex row * Fix overlaping placeholder
- Loading branch information
1 parent
ce577ac
commit 9440365
Showing
7 changed files
with
49 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type StyledButtonProps = { | ||
$color: 'primary' | 'secondary'; | ||
$variant?: 'text' | 'contained' | 'outlined' | 'link'; | ||
}; |
23 changes: 23 additions & 0 deletions
23
packages/berlin/src/components/containers/FlexRowToColumn.styled.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import styled from 'styled-components'; | ||
|
||
type FlexRowToColumnProps = { | ||
$align?: 'flex-start' | 'center' | 'flex-end'; | ||
$gap?: string; | ||
$justify?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around'; | ||
}; | ||
|
||
export const FlexRowToColumn = styled.div<FlexRowToColumnProps>` | ||
align-items: center; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
width: 100%; | ||
align-items: ${(props) => (props.$align && props.$align) || 'flex-start'}; | ||
gap: ${(props) => props.$gap || '1rem'}; | ||
justify-content: ${(props) => (props.$justify && props.$justify) || 'flex-start'}; | ||
@media (min-width: 640px) { | ||
flex-direction: row; | ||
} | ||
`; |
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
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