Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Sheet): avoid content from rendering on top of sticky title/buttons #1247

Merged
merged 7 commits into from
Sep 30, 2024
40 changes: 30 additions & 10 deletions src/sheet-common.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,39 @@ export const overlay = style([

export const closingOverlay = style(overlayClosedStyle);

export const stickyTitle = sprinkles({
position: 'sticky',
top: 0,
background: skinVars.colors.background,
});
export const stickyTitle = style([
sprinkles({
position: 'sticky',
top: 0,
background: skinVars.colors.background,
}),
{
'@media': {
[mq.tabletOrSmaller]: {
zIndex: 1,
},
},
},
]);

export const stickyButtons = sprinkles({
position: 'sticky',
bottom: 0,
background: skinVars.colors.background,
});
export const stickyButtons = style([
sprinkles({
position: 'sticky',
bottom: 0,
background: skinVars.colors.background,
}),
{
'@media': {
[mq.tabletOrSmaller]: {
zIndex: 1,
},
},
},
]);

export const bodyContent = style({
position: 'relative',
zIndex: 0,
'@media': {
[mq.desktopOrBigger]: {
overflowY: 'auto',
Expand Down
Loading