Comments (2)
Probably not the cleanest way because of using !important
, but solved it for me. You can overwrite background-color
in the css classes used by vue-toaster:
// default colors
/*
$toast-colors: (
"success": #28a745,
"info": #17a2b8,
"warning": #ffc107,
"error": #dc3545,
"default": #343a40
);
*/
.c-toast--success {
background-color: #22ad4e !important;
}
.c-toast--error {
background-color: #dc3545 !important;
}
// further classes analog
See:
- https://github.com/MeForma/vue-toaster/blob/db3b31d8459a1b96dc5a722097cd4ecb57bf3100/src/themes/default/colors.styl
- https://github.com/MeForma/vue-toaster/blob/db3b31d8459a1b96dc5a722097cd4ecb57bf3100/src/themes/default/variables.styl
from vue-toaster.
Probably not the cleanest way because of using
!important
, but solved it for me. You can overwritebackground-color
in the css classes used by vue-toaster:// default colors /* $toast-colors: ( "success": #28a745, "info": #17a2b8, "warning": #ffc107, "error": #dc3545, "default": #343a40 ); */ .c-toast--success { background-color: #22ad4e !important; } .c-toast--error { background-color: #dc3545 !important; } // further classes analogSee:
Thank u!
from vue-toaster.
Related Issues (20)
- Setting dismissible: false also disables the onClick function HOT 1
- Use in Composition API supported? HOT 4
- Add github star and fork buttons on example
- Doesn't work in Typescript HOT 1
- Vue 4 suppport? HOT 2
- Use vue-toaster inside action.js HOT 6
- Should be used with Vue3 Typescript HOT 3
- ReferenceError glob is not defined
- Add separate close button HOT 2
- Publish latest release to npm HOT 1
- @meforma/vue-toaster doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module HOT 1
- Warnings when installing?
- Cannot read properties of undefined (reading '$toast') HOT 3
- Custom CSS HOT 3
- Calling this.$toast.clear() doesn't clear any toasts (using Vite) HOT 7
- Why the toaster doesn't show up on mobile browsers?
- Unable to build the site HOT 1
- Import not work in main.js
- Different mounting point HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-toaster.