Skip to content

Commit

Permalink
fix: Apply flagship style to closebutton higher
Browse files Browse the repository at this point in the history
It only needs to be applied when displayed in a full screen modal,
so we are changing where the style is defined.
This will fix small modals appearing in flagship app with
pushed down buttons
  • Loading branch information
acezard committed May 11, 2023
1 parent db9bb4f commit e11eb97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion react/CozyDialogs/styles.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
top 1.15rem
right 1.15rem
z-index 1
transform translateY(var(--flagship-top-height))
+small-screen()
top 0.25rem
right 0.25rem
Expand Down
3 changes: 3 additions & 0 deletions react/MuiCozyTheme/makeOverrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,9 @@ const makeOverrides = theme => ({
paperFullScreen: {
'& .cozyDialogActions': {
paddingBottom: 'env(safe-area-inset-bottom)'
},
'& [class*="DialogCloseButton"]': {
transform: 'translateY(var(--flagship-top-height))'
}
}
},
Expand Down

0 comments on commit e11eb97

Please sign in to comment.