-
Notifications
You must be signed in to change notification settings - Fork 124
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
Toolbar box-shadow mask disappears when keyboard is up #2760
base: main
Are you sure you want to change the base?
Changes from 5 commits
7d2bc22
ccfe321
a66f0a1
b453223
4cdb704
8714d48
3b6fc63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,8 +50,6 @@ const setup = async ({ | |
break | ||
case 'info': | ||
case 'log': | ||
// eslint-disable-next-line no-console | ||
console[messageType](text) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please avoid irrelevant changes such as these. |
||
break | ||
// ConsoleMessage 'warning needs to be converted to native console 'warn' | ||
case 'warn': | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,6 @@ const initEventHandler = once(() => { | |
/** Emulates position fixed on mobile Safari with positon absolute. Returns { position, overflowX, top } in absolute mode. */ | ||
const usePositionFixed = (): { | ||
position: 'fixed' | 'absolute' | ||
overflowX?: 'hidden' | 'visible' | ||
top: string | ||
} => { | ||
const position = positionFixedStore.useState() | ||
|
@@ -37,7 +36,6 @@ const usePositionFixed = (): { | |
|
||
return { | ||
position: position ?? 'fixed', | ||
overflowX: position === 'absolute' ? 'hidden' : 'visible', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you please explain this change? I'm a bit worried there will be unintended side effects from removing this attribute in the several places that use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is needed to be removed and was discussed with @raineorshine in the ticket 1785. The reason that overflowX needed to be set when we switch to position absolute, was because there were no 'relative bounds' surrounding the app. When we switch to absolute, it moves part of the page off screen horizontally, thus giving the app a horizontal scroll bar that we don't need. You can see the videos above attached to this pr, showing the horizontal scroll bar appear. This was a patchwork fix in the past and it needed to be reworked, because everytime the overflowX was set to hidden while the position was absolute, the boxShadow would disappear. In order to resolve the issue of the boxShadow disappearing we can only find a way to remove this overflowX change (regarding the horizontal scrollbar), and to resolve this we need to add a relative bounds and overflow setting around all the apps which display in the root. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great explanation, thanks. |
||
/* spacing.safeAreaTop applies for rounded screens */ | ||
top: position === 'absolute' ? `${scrollTop}px` : token('spacing.safeAreaTop'), | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid irrelevant changes such as these.