Fixed #1403 - New styleClass and contentStyleClass props for Toast

pull/1408/head
Tuğçe Küçükoğlu 2021-08-04 11:58:17 +03:00
parent 57fdc54777
commit a4973cb39a
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template>
<div :class="containerClass" role="alert" aria-live="assertive" aria-atomic="true">
<div class="p-toast-message-content">
<div class="p-toast-message-content" :class="message.contentStyleClass">
<template v-if="!template">
<span :class="iconClass"></span>
<div class="p-toast-message-text">
@ -48,7 +48,7 @@ export default {
},
computed: {
containerClass() {
return ['p-toast-message', {
return ['p-toast-message', this.message.styleClass, {
'p-toast-message-info': this.message.severity === 'info',
'p-toast-message-warn': this.message.severity === 'warn',
'p-toast-message-error': this.message.severity === 'error',