Skip to content

Commit

Permalink
Merge pull request #1106 from prezly/feature/ui-566-site-galleries-sh…
Browse files Browse the repository at this point in the history
…ow-captions-on-hover

[UI-566] Feature - Re-enable captions in galleries on hover
  • Loading branch information
kudlajz authored Feb 29, 2024
2 parents 95a374b + 0dff5aa commit 279ec70
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
19 changes: 9 additions & 10 deletions components/ContentRenderer/ContentRenderer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,24 @@ $avatar-size: 60px;
.prezly-slate-image-rollover {
width: 100%;
z-index: 0;
}

.prezly-slate-image-rollover__dim,
.prezly-slate-image-rollover__caption-text {
display: none;
&:hover,
&:focus-within {
.prezly-slate-image-rollover__dim {
opacity: 0.8;
}
}
}

.prezly-slate-image-rollover__caption-icon-container {
@include border-radius-m;

background: rgba($color-base-900, 0.3);
background: $color-base-600;
border-radius: 8px;
}

.prezly-slate-image-rollover__caption {
&:not(.prezly-slate-image-rollover__caption--empty) {
.prezly-slate-image-rollover__caption-icon-container {
margin-top: 0;
}
}
color: $color-base-700;
}

.prezly-slate-iframely-embed {
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@headlessui/react": "1.7.18",
"@playwright/test": "^1.33.0",
"@prezly/analytics-nextjs": "1.13.0",
"@prezly/content-renderer-react-js": "0.34.1",
"@prezly/content-renderer-react-js": "0.34.3",
"@prezly/sdk": "19.10.0",
"@prezly/story-content-format": "0.64.0",
"@prezly/theme-kit-nextjs": "9.0.1",
Expand Down

0 comments on commit 279ec70

Please sign in to comment.