-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
fix: form and popup style fixes
1 parent
dbb7675
commit 2641b93
Showing
6 changed files
with
100 additions
and
33 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const StyledSelect = styled.select` | ||
display: inline-block; | ||
padding: 0.5rem 1.5rem 0.5rem 0.5rem; | ||
justify-content: center; | ||
align-items: center; | ||
color: inherit; | ||
border-bottom: 1px solid currentColor; | ||
&:disabled { | ||
color: gray; | ||
} | ||
`; | ||
|
||
const StyledBox = styled.div` | ||
display: inline-block; | ||
position: relative; | ||
background-color: black; | ||
&::after { | ||
content: '▼'; | ||
position: absolute; | ||
right: 0.25rem; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
width: 1rem; | ||
height: 1rem; | ||
} | ||
`; | ||
|
||
export function Select(props: React.JSX.IntrinsicElements['select']) { | ||
return ( | ||
<StyledBox> | ||
<StyledSelect {...props} /> | ||
</StyledBox> | ||
); | ||
} |
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