-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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(modal): status bar color now correct with sheet modal #25424
Conversation
The original issue also mentions the border radius not lining up with the screen as the animation starts. Are we skipping over that? I'd understand if it wasn't feasible to fix in a way that handles all devices. |
We are tracking that separately: #23015 |
When you close the card modal, the status bar always reverts to the default style (not to the previous setting). So when the Status bar style is manually set to dark (but the default is the light style) it doesn't revert back to it on card modal close. Is this supposed to happen? Nonetheless, this feature is an awesome addition!! |
Yes, this is intentional according to the Capacitor Docs for the At the moment Capacitor does not track what the previous style was. If this is a behavior you need, I recommend opening a feature request on https://github.com/ionic-team/capacitor-plugins. As a workaround, you could wait for the |
Okay, thank you for the explanation and tip. |
@liamdebeasi The StatusBar Plugin has a |
Thanks for providing this. But I see and I have three problems here:
|
For our project this fix can introduce a bug thats worst then missing the statusbar when showing a card modal.
If we set the correct status bar at app startup, this will be overriden after user opens and closes first card modal.
Suggestions:
When working in ionic-vue having a global setting where one could send in a ref for what statusbar style to revert to would be great option. |
@torgnywalin Can you file an issue with a reproduction case? |
@liamdebeasi Thanks for quick reply. I tried to describe in this issue |
Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docs
repo, in a separate PR. See the contributing guide for details.npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue URL: resolves #20501
What is the new behavior?
Note: This is a Capacitor 3 only feature. Feature detection was added so errors do not occur in Cordova/Capacitor 2.
Since this functionality is dependent on a native plugin I was not able to write a test for this.
6.1.7-dev.11653592708.12aae268
is a dev build for testing.Does this introduce a breaking change?
Other information