Skip to content

Commit

Permalink
Updated drop zone border to have better contrast and to be lighter wh…
Browse files Browse the repository at this point in the history
…en disabled
  • Loading branch information
mitchmaps committed Sep 11, 2019
1 parent cda89db commit 2a259a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f

### Enhancements

- Changed border color of `Drop zone` to have better contrast from the background and to be lighter when disabled ([#2119](https://github.com/Shopify/polaris-react/pull/2119))

### Bug fixes

### Documentation
Expand Down
7 changes: 6 additions & 1 deletion src/components/DropZone/DropZone.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

$dropzone-padding: rem(15px);
$dropzone-border-style: dashed;
$dropzone-border-color: color('sky');
$dropzone-border-color: color('ink', 'lightest');
$dropzone-border-color-disabled: color('sky');
$dropzone-border-radius: border-radius();
$dropzone-background: color('white');
$dropzone-min-height-extra-large: rem(205px);
Expand Down Expand Up @@ -90,6 +91,10 @@ $dropzone-stacking-order: (

.isDisabled {
cursor: not-allowed;

&::after {
border-color: $dropzone-border-color-disabled;
}
}

.sizeExtraLarge {
Expand Down

0 comments on commit 2a259a9

Please sign in to comment.