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

CSS Styling of Tags Having No Effect #99

Closed
arpollock opened this issue Jul 3, 2019 · 4 comments
Closed

CSS Styling of Tags Having No Effect #99

arpollock opened this issue Jul 3, 2019 · 4 comments

Comments

@arpollock
Copy link

arpollock commented Jul 3, 2019

Love the component, but I am having difficulty styling the background color of the tags. I can change the style of the whole tags input (i.e I can change the width of the vue-tags-input object and the font size within that), but I can't get the color of the tags to change from the default #5C6BC0.

I am just following the example here: http://www.vue-tags-input.com/#/examples/styling with no luck. I was initially using the createTags helper (and I thought this was having an effect), but even when I give all of the tags a custom class without using the helper, the custom class styling does not appear. And, when I inspect the elements this class isn't even on the li elements (just the ti-tag and ti-valid classes).

The only effect I can get styling wise is putting the string inline with the style attribute, but this overrides the default delete styling which I like. I have even tried using !important on the class .ti-tags with my internal style sheet with no luck. Any suggestions?
I am using https://github.com/kaorun343/vue-property-decorator but I don't think this should have an effect on the styling.

@arpollock arpollock changed the title CSS Styling Not Working with Create tags Helper CSS Styling of Tags Having No Effect Jul 4, 2019
@arpollock
Copy link
Author

arpollock commented Jul 4, 2019

Update with the investigation: confirmed that the applied class is getting overwritten at some point. When I access the tags tiClasses array, ti-valid is the only one, even though I applied a 'custom-class' class when I created the array of objects.

Also, there is no effect on .ti-tag-input styling. I am trying to change the size to a bigger font here with no effect.

@arpollock
Copy link
Author

Solution: don't let scoped on your style sheet ruin your day

@albertpratomo
Copy link

How to override the scoped original vue-tags-input.scss?

@jonas-kp
Copy link

Same problem for me. On localhost css changes work, but when deploying, css changes are overwritten and not working. Any solution on this?

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

3 participants