Update ValidationMessage.vue

Correction of the alteration of the CSS class and icon when changing the severity.
pull/193/head
Alison Souza 2020-02-10 11:34:24 -03:00 committed by GitHub
parent 43152da327
commit f7ade6fe27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template>
<div aria-live="polite" class="p-message p-component p-message-error">
<div aria-live="polite" :class="containerClass">
<span :class="iconClass"></span>
<span class="p-message-text"><slot></slot></span>
</div>
@ -32,8 +32,8 @@ export default {
},
iconClass() {
return ['p-message-icon pi', {
'pi-check': this.severity === 'info',
'pi-info-circle': this.severity === 'success',
'pi-info-circle': this.severity === 'info',
'pi-check': this.severity === 'success',
'pi-exclamation-triangle': this.severity === 'warn',
'pi-times-circle': this.severity === 'error'
}];