Skip to content

Commit

Permalink
Update select styles
Browse files Browse the repository at this point in the history
  • Loading branch information
alchaplinsky committed Aug 11, 2021
1 parent f13af4f commit d264f88
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ const Language = ({ section }) => {
return (
<>
<h1>{i18n('Language')}</h1>
<select
name="locale"
onChange={({ target }) => setLanguage(target.value)}
>
{Object.keys(languages).map(key => (
<option key={key} value={key}>
{languages[key]}
</option>
))}
</select>
<div className="select">
<select
name="locale"
onChange={({ target }) => setLanguage(target.value)}
>
{Object.keys(languages).map(key => (
<option key={key} value={key}>
{languages[key]}
</option>
))}
</select>
</div>
</>
)
}
Expand Down
14 changes: 14 additions & 0 deletions src/renderer/stylesheets/components/select.sass
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
.select
position: relative
&::after
position: absolute
display: block
content: ""
width: 0.8em
height: 0.5em
top: 14px
right: 14px
background-color: #777
clip-path: polygon(100% 0%, 0 0%, 50% 100%)

select
font-size: 14px
width: 100%
padding: 8px 10px
border: 1px solid #ddd
border-radius: 5px
outline: none
-webkit-appearance: none

0 comments on commit d264f88

Please sign in to comment.