pull/5507/head
mertsincan 2024-03-30 09:08:00 +00:00
parent a5dff7722e
commit e83919d431
2 changed files with 4 additions and 3 deletions

View File

@ -10,10 +10,10 @@ export default {
options: { options: {
prefix: 'p', prefix: 'p',
darkModeSelector: 'system', darkModeSelector: 'system',
cssLayer: { cssLayer: false /*{
name: 'primevue', name: 'primevue',
order: 'primevue' order: 'primevue'
} }*/
} }
}, },
_pConfig: undefined, _pConfig: undefined,

View File

@ -129,8 +129,9 @@ export default {
.reduce((acc, [key, value]) => { .reduce((acc, [key, value]) => {
if (value) { if (value) {
const _css = SharedUtils.object.minifyCSS(value); const _css = SharedUtils.object.minifyCSS(value);
const id = key === 'global' ? `${key}-style` : `${key}-variables`;
acc.push(`<style type="text/css" data-primevue-style-id="${key}" ${_props}>${_css}</style>`); acc.push(`<style type="text/css" data-primevue-style-id="${id}" ${_props}>${_css}</style>`);
} }
return acc; return acc;