Skip to content
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

Allow custom css to be injected #113

Open
hamzahsn opened this issue Jun 23, 2021 · 1 comment
Open

Allow custom css to be injected #113

hamzahsn opened this issue Jun 23, 2021 · 1 comment

Comments

@hamzahsn
Copy link

hamzahsn commented Jun 23, 2021

Currently, we're using this library to generate notification our own notification, but the issue is that we're not able to add some custom styling such as positioning, we know that currently there INotyfPosition which allow us to provide something like the following:

position: {
    x: 'right',
    y: 'top',
  }

Where as you can see I'm only allowed to provide description of the positioning.

Desired behavior:

I would be able to provide a custom positioning eg:

position: {
  x: 'right 10px',
  y: 'top 50px'
 }

or even something similar.

Right now we are overriding the class name notyf in order to be able to get this feature, but would love to have such kind of dynamic positioning, I didn't find in the documentation such kind of thing, so would be great to have it if that's possible.

PS: very nice lib, we love it 😍

@razafinarivohanania
Copy link

@hamzahsn I need this feature too. For my case, i need to custom z-index of the notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants