Skip to content

Commit

Permalink
Merge pull request #324 from amplimindcc/323-add-styling-to-upload-bu…
Browse files Browse the repository at this point in the history
…tton

style upload button
  • Loading branch information
MysterionAutotronic authored Jun 10, 2024
2 parents e270bf7 + 6e02c8a commit 5b4058a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/pages/Commit/components/LocalizedFileInput.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
.localized-file-input-span {
margin-left: 7px;
}

margin-left: 7px;
.custom-file-input button.button {
background-color: #2d656f;
}

}
.custom-file-input button.button:hover {
background-color: #06f87f;
color: #002339;
}
Expand Down
9 changes: 9 additions & 0 deletions src/pages/Commit/components/LocalizedFileInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@

.localized-file-input-span {
margin-left: 7px;
}

.custom-file-input button.button {
background-color: $amplimind-accent-light-blue;
}

.custom-file-input button.button:hover {
background-color: $amplimind-accent-green;
color: $amplimind-accent-dark-blue;
}
2 changes: 1 addition & 1 deletion src/pages/Commit/components/LocalizedFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const LocalizedFileInput: React.FC<LocalizedFileInputProps> = ({ onChange, accep
data-testid="fileUpload"
/>
<label htmlFor='fileInput' className='custom-file-input'>
<button type="button">
<button className="button" type="button">
{t('browse')}
</button>
</label>
Expand Down

0 comments on commit 5b4058a

Please sign in to comment.