Skip to content

Ionic 4 - styling ion-toast for full width, problem with left/right value of .toast-wrapper #17854

Closed

Description

@entom

Ionic version:
[x] 4.x

I'm submitting a ...
[ ] bug report
[x] feature request

Current behavior:
Ion-toast is showing on position left: 8px, right: 8px.

Expected behavior:
I would like to show ion-toast on full width (100% width) on screen, I can set --width: 100%;
But there is left 8px setting which i'm not able to overwrite with any settings. .toast-wrapper is in shadow-root.

Steps to reproduce:
Show toast on screen, try to make it full width.

Related code:

.toast-wrapper {
    left: 8px;
    right: 8px;
...
}

Other information:

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.12.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.1.2
   @angular-devkit/build-angular : 0.13.6
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.6
   @ionic/angular-toolkit        : 1.5.0

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 8.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 33 other plugins)

System:

   NodeJS : v11.12.0 (/usr/local/bin/node)
   npm    : 6.9.0
   OS     : macOS Mojave
   Xcode  : Xcode 10.1 Build version 10B61

Activity

  1. added
    type: feature request
    on Mar 22, 2019
  2. added
    help wanted
    on Apr 2, 2019
  3. ionitron-bot commented on Apr 2, 2019

    @ionitron-bot

    This issue has been labeled as help wanted. This label is added to issues that we believe would be good for contributors.

    If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort.

    For a guide on how to create a pull request and test this project locally to see your changes, see our contributing documentation.

    Thank you!

  4. entom commented on Apr 4, 2019

    @entom
    ContributorAuthor

    I'm working with it.

  5. ionitron-bot commented on May 16, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  6. locked and limited conversation to collaborators on May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedpackage: coretype: feature request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions