Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 80c8f27

Browse files
committed
fix(file-preview-card): action with nested button
1 parent 8386ece commit 80c8f27

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

dist/file-preview-card/file-preview-card.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ video.file-preview-card__asset {
3737
}
3838

3939
.file-preview-card__asset--fade {
40+
background-color: inherit;
4041
opacity: 0.5;
4142
}
4243

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

48-
.icon-btn.file-preview-card__action {
49+
.file-preview-card__body .icon-btn {
4950
height: var(--spacing-400);
51+
width: var(--spacing-400);
52+
}
53+
54+
.file-preview-card__body > .file-preview-card__action {
5055
position: absolute;
5156
right: var(--spacing-100);
5257
top: var(--spacing-100);
53-
width: var(--spacing-400);
5458
z-index: 1;
5559
}
5660

57-
.file-preview-card__action:dir(rtl) {
61+
.file-preview-card__body > .file-preview-card__action:dir(rtl) {
5862
left: var(--spacing-100);
5963
right: auto;
6064
}

src/sass/file-preview-card/file-preview-card.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,19 @@ video.file-preview-card__asset {
5353
width: 40%;
5454
}
5555

56-
.icon-btn.file-preview-card__action {
56+
.file-preview-card__body .icon-btn {
5757
height: var(--spacing-400);
58+
width: var(--spacing-400);
59+
}
60+
61+
.file-preview-card__body > .file-preview-card__action {
5862
position: absolute;
5963
right: var(--spacing-100);
6064
top: var(--spacing-100);
61-
width: var(--spacing-400);
6265
z-index: 1;
6366
}
6467

65-
.file-preview-card__action:dir(rtl) {
68+
.file-preview-card__body > .file-preview-card__action:dir(rtl) {
6669
left: var(--spacing-100);
6770
right: auto;
6871
}

0 commit comments

Comments
 (0)