Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already include this feature request, without success.
Describe the Feature Request
The toast either gets in the way, or is out of eyesight.
I want to position it as a lower-third.
I have an ion-footer / ion-toolbar in my app, and if I put the toast at the bottom then it covers the ui and gets in the way.
Putting it at the middle or top, even I miss it sometimes, as the app developer. Modern phones are tall and its out of my eyesight when I'm pressing an ok or save button in the footer of the screen.
I wanted to adjust it but the component uses css shadow parts and the positioning is done in a part that is not exposed.
This doesn't work because it just moves the text inside the toast, not the background and actual toast:
.util-brand-toast::part(container) {
transform: translate3d(0, -30%, 0) !important;
}
This doesn't work because its not exposed:
.util-brand-toast .toast-wraper.toast-bottom {
transform: translate3d(0, -30%, 0) !important;
}
This does "work" but it affects the outer container, and I'm nervous that it's not a clean way of doing things:
.util-brand-toast {
transform: translate3d(0, -30%, 0) !important;
}
It ends up like this:
![image](https://private-user-images.githubusercontent.com/1038062/382454437-b1e906b8-dc19-4167-8fab-d50736d96a94.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk4MzMyMTMsIm5iZiI6MTczOTgzMjkxMywicGF0aCI6Ii8xMDM4MDYyLzM4MjQ1NDQzNy1iMWU5MDZiOC1kYzE5LTQxNjctOGZhYi1kNTA3MzZkOTZhOTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTdUMjI1NTEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTVjMjAzODFlN2IzMTEwYzQ3NmM1MzViMGFlZTdkZDQ1YTc0N2RhMGEyYjI0YTE0ZDAxZGQyMjMzYzY1Njk0MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.a8VLLcu-N3XmtIEI3yuZ96Go9bUqkpBRZ_rDKZYt4Tw)
Describe the Use Case
Allow fine grained control over the toast position
Describe Preferred Solution
Access to the .toast-wrapper
or some setting method.
Describe Alternatives
No response
Related Code
No response
Additional Information
No response