Skip to content

Commit

Permalink
fix(Sheet): avoid content from rendering on top of sticky title/butto…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny authored Sep 30, 2024
1 parent b3eede9 commit 21ce399
Showing 1 changed file with 30 additions and 10 deletions.
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

1 comment on commit 21ce399

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-ir593ja58-flows-projects-65bb050e.vercel.app

Built with commit 21ce399.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.