Skip to content

Commit

Permalink
Update Uppy's blue color to meet WCAG contrast requirements (#4777)
Browse files Browse the repository at this point in the history
* Use a darker shade of blue for `$blue`

* Remove transparency from the browse button

* Improve contrast of the `buttonImport`
  • Loading branch information
nqst authored Nov 9, 2023
1 parent 1431d52 commit b6f34b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/@uppy/core/src/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $orange: #f6a623 !default;
$yellow: #ffd600 !default;
$green: #1bb240 !default;
$darkgreen: #1c8b37 !default;
$blue: #2275d7 !default;
$blue: #1269cf !default;
$lightblue: #aae1ff !default;
$beige: #edd4b9 !default;

Expand Down
4 changes: 2 additions & 2 deletions packages/@uppy/dashboard/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
.uppy-Dashboard-browse {
@include clear-focus;

color: rgba($blue, 0.9);
color: $blue;
cursor: pointer;

&:hover,
Expand Down Expand Up @@ -837,7 +837,7 @@
color: $gray-600;
font-size: 16px;
text-align: center;
background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%232275D7' fill-rule='nonzero'/%3E%3C/svg%3E");
background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 1v1C11.85 2 2 11.85 2 24s9.85 22 22 22 22-9.85 22-22S36.15 2 24 2V1zm0 0V0c13.254 0 24 10.746 24 24S37.254 48 24 48 0 37.254 0 24 10.746 0 24 0v1zm7.707 19.293a.999.999 0 1 1-1.414 1.414L25 16.414V34a1 1 0 1 1-2 0V16.414l-5.293 5.293a.999.999 0 1 1-1.414-1.414l7-7a.999.999 0 0 1 1.414 0l7 7z' fill='%231269CF' fill-rule='nonzero'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: 50% 50%;
border: 1px dashed $blue;
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/react-native/file-picker/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const styles = StyleSheet.create({
},
buttonImport: {
alignItems: 'center',
backgroundColor: '#2275d7',
backgroundColor: '#1269cf',
paddingHorizontal: 25,
paddingVertical: 8,
borderRadius: 5,
Expand Down

0 comments on commit b6f34b2

Please sign in to comment.