Skip to content

Commit

Permalink
feat(file-preview-card): add description (#2474)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuLaValva authored Oct 25, 2024
1 parent 94f4201 commit 67a224b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/real-sheep-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/skin": patch
---

Add description to file preview card
10 changes: 7 additions & 3 deletions dist/file-preview-card/file-preview-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ video.file-preview-card__asset {
}

.file-preview-card__asset--fade {
background-color: inherit;
opacity: 0.5;
}

Expand All @@ -45,16 +46,19 @@ video.file-preview-card__asset {
width: 40%;
}

.icon-btn.file-preview-card__action {
.file-preview-card__body .icon-btn {
height: var(--spacing-400);
width: var(--spacing-400);
}

.file-preview-card__body > .file-preview-card__action {
position: absolute;
right: var(--spacing-100);
top: var(--spacing-100);
width: var(--spacing-400);
z-index: 1;
}

.file-preview-card__action:dir(rtl) {
.file-preview-card__body > .file-preview-card__action:dir(rtl) {
left: var(--spacing-100);
right: auto;
}
Expand Down
9 changes: 6 additions & 3 deletions src/sass/file-preview-card/file-preview-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,19 @@ video.file-preview-card__asset {
width: 40%;
}

.icon-btn.file-preview-card__action {
.file-preview-card__body .icon-btn {
height: var(--spacing-400);
width: var(--spacing-400);
}

.file-preview-card__body > .file-preview-card__action {
position: absolute;
right: var(--spacing-100);
top: var(--spacing-100);
width: var(--spacing-400);
z-index: 1;
}

.file-preview-card__action:dir(rtl) {
.file-preview-card__body > .file-preview-card__action:dir(rtl) {
left: var(--spacing-100);
right: auto;
}
Expand Down

0 comments on commit 67a224b

Please sign in to comment.