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

Alert area box visible when alert is not active #4

Closed
kps1ny opened this issue Feb 1, 2018 · 2 comments
Closed

Alert area box visible when alert is not active #4

kps1ny opened this issue Feb 1, 2018 · 2 comments

Comments

@kps1ny
Copy link

kps1ny commented Feb 1, 2018

Hi - thanks for this Vue component.

It's working well on my site to show alerts, but there seems to be a small issue with CSS as shown in the attached image.

Specifically, there's a subtle blocked area appearing where the alert is set to show up when activated. This area moves around when positioning the alert to appear at the top left, bottom right, etc.

Any ideas how to get rid of it?

My code:
<vs-notify group="alert" position="bottom right" :duration="6000"></vs-notify>

this.$notify("alert", response.body.ErrorMessage, "error");

I've not tried to adjust styling on the notify element at all.

-Ken

screen shot 2018-02-01 at 11 06 12 am

@NxtChg
Copy link
Owner

NxtChg commented Feb 1, 2018

You probably modified CSS on 'div' element? This is not advisable, all custom styles should only modify classes, not raw elements, as this can cause problems.

I suggest either fixing your styles, or clearing them manually for 'vs-notify' class, for example:

.vs-notify{ border:none; }

@kps1ny
Copy link
Author

kps1ny commented Feb 2, 2018

Thanks for the reply.

It turns out that the subtle box was a result of Bootstrap's CSS because group="alert" adds the class .alert to the notification area and Bootstrap's styling that class.

Changing the group value to some other string that otherwise has no class, and then changing this.$notify to use that same string, resolved this and the box disappeared.

-Ken

@kps1ny kps1ny closed this as completed Feb 2, 2018
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