Skip to content

Commit 2911a65

Browse files
committed
Restore box shadow around excursion sheet
REDMINE-20481
1 parent 5f6a99c commit 2911a65

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

entry_types/scrolled/package/src/widgets/excursionSheet/ExcursionSheet.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ export function ExcursionSheet({excursion, onClose, setIsCoveringBackground, chi
2323
<CloseButton invert={intersectingSectionInverted}
2424
onClick={onClose} />
2525
<div ref={contentRef} className={styles.content}>
26-
<SectionIntersectionObserver
27-
sections={excursion.sections}
28-
probeClassName={styles.probe}
29-
onChange={section => setIntersectingSectionInverted(section?.invert)}>
30-
{children}
31-
</SectionIntersectionObserver>
26+
<div className={styles.clip}>
27+
<SectionIntersectionObserver
28+
sections={excursion.sections}
29+
probeClassName={styles.probe}
30+
onChange={section => setIntersectingSectionInverted(section?.invert)}>
31+
{children}
32+
</SectionIntersectionObserver>
33+
</div>
3234
</div>
3335
<ReturnButton label={excursion.returnButtonLabel}
3436
onClose={onClose} />

entry_types/scrolled/package/src/widgets/excursionSheet/ExcursionSheet.module.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
box-shadow: 0 0 20px 5px rgb(0 0 0 / 0.5);
3939
position: relative;
4040
overflow: clip;
41+
}
42+
43+
.clip {
4144
clip-path: inset(0);
4245
}
4346

0 commit comments

Comments
 (0)