Skip to content

Commit

Permalink
Merge pull request #38 from ebs-integrator/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
marcellefter authored Jan 27, 2021
2 parents e5180cd + d319ee5 commit 56be69a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ebs-integrator/react-ebs-ui",
"version": "0.0.1-beta.11",
"version": "0.0.1-beta.12",
"description": "Basic React UI elements.",
"author": "EBS Integrator",
"maintainers": [
Expand Down
16 changes: 16 additions & 0 deletions src/components/molecules/InputSelect/InputSelect.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
border: 1px solid $border-color;
border-radius: rem($border-radius);
font-size: rem(14px);
background-color: $white;

&-transition {
width: rem(90px);
Expand Down Expand Up @@ -66,12 +67,27 @@
&--small {
font-size: rem(12px);
padding: rem($select-padding-y-sm $select-padding-x-sm);

// FIXME: Temporary hack
.ebs-select__input-value:empty {
min-height: $base-size-sm - $select-padding-y-sm * 2;
}
}
&--medium {
padding: rem($select-padding-y $select-padding-x);

// FIXME: Temporary hack
.ebs-select__input-value:empty {
min-height: $base-size - $select-padding-y * 2;
}
}
&--large {
padding: rem($select-padding-y-lg $select-padding-x-lg);

// FIXME: Temporary hack
.ebs-select__input-value:empty {
min-height: $base-size-lg - $select-padding-y-lg * 2;
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/components/molecules/Upload/Upload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
&:hover {
cursor: pointer;
}
.ebs-icon {
color: $text-color;
}
}
&__name {
font-weight: 600;
margin-bottom: 7px;
font-size: rem(13px);
color: $text-color;
}
&__size {
min-width: 80px;
Expand Down
4 changes: 2 additions & 2 deletions src/components/molecules/Upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const Upload = React.forwardRef<any, UploadProps>((props, ref) => {
</div>

<div className="upload__file">
<a href={internalFile?.url} className="upload__file__name">
<a href={internalFile?.url} target="_blank" rel="noopener noreferrer" className="upload__file__name">
{internalFile?.name}
</a>

Expand All @@ -105,7 +105,7 @@ export const Upload = React.forwardRef<any, UploadProps>((props, ref) => {
</div>
)}

{internalError && <div className="upload__error">{internalError.message}</div>}
{internalFile && internalError && <div className="upload__error">{internalError.message}</div>}
</>
);
});
3 changes: 0 additions & 3 deletions src/components/organisms/SortBy/SortBy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

.ebs-sort-by__wrapper {
position: relative;
height: rem($sort-by-height);
display: flex;

> .ebs-button__wrapper {
Expand All @@ -67,8 +66,6 @@
}

.ebs-button__wrapper {
height: rem($sort-by-height);

.ebs-icon {
transition: 300ms transform;
}
Expand Down

0 comments on commit 56be69a

Please sign in to comment.