I an working with vue3 and PrimeVue library. When I try to override css fields of PrimeView components using :deep() selector it just does not have any effect. only when I am using an unscoped style it applies my changes. I have trouble understanding why it does not work.
code for example with :deep():
<template>
<Toast position='buttom-right'/>
</template>
<style scoped>
:deep(.p-toast-message-icon) {
margin-right: 10px !important;
}
</style>
This doesn't work.
But when using style without scoped like so:
<style>
.p-toast-message-icon {
margin-right: 10px !important;
}
</style>
This does work.