2023-12-26 08:13:55 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
|
|
|
<p>
|
2024-12-07 21:18:08 +00:00
|
|
|
In case PrimeVue components have visual issues in your application, a Reset CSS may be the culprit. CSS layers would be an efficient solution that involves enabling the PrimeVue layer, wrapping the Reset CSS in another layer and defining
|
|
|
|
the layer order. This way, your Reset CSS does not get in the way of PrimeVue components.
|
2023-12-26 08:13:55 +00:00
|
|
|
</p>
|
2024-01-30 08:16:35 +00:00
|
|
|
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
2023-12-26 08:13:55 +00:00
|
|
|
</DocSectionText>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
checked: false,
|
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
/* Order */
|
|
|
|
@layer reset, primevue;
|
|
|
|
|
|
|
|
/* Reset CSS */
|
|
|
|
@layer reset {
|
|
|
|
button,
|
|
|
|
input {
|
|
|
|
/* CSS to Reset */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|