diff --git a/components/lib/accordiontab/style/AccordionTabStyle.js b/components/lib/accordiontab/style/AccordionTabStyle.js index ff8b4c563..b978edc55 100644 --- a/components/lib/accordiontab/style/AccordionTabStyle.js +++ b/components/lib/accordiontab/style/AccordionTabStyle.js @@ -1 +1,5 @@ -export default {}; +import BaseStyle from 'primevue/base/style'; + +export default BaseStyle.extend({ + name: 'accordiontab' +}); diff --git a/components/lib/animateonscroll/BaseAnimateOnScroll.js b/components/lib/animateonscroll/BaseAnimateOnScroll.js index 3f34f4580..55a3bbba9 100644 --- a/components/lib/animateonscroll/BaseAnimateOnScroll.js +++ b/components/lib/animateonscroll/BaseAnimateOnScroll.js @@ -1,5 +1,8 @@ +import AnimateOnScrollStyle from 'primevue/animateonscroll/style'; import BaseDirective from 'primevue/basedirective'; -const BaseAnimateOnScroll = BaseDirective.extend({}); +const BaseAnimateOnScroll = BaseDirective.extend({ + style: AnimateOnScrollStyle +}); export default BaseAnimateOnScroll; diff --git a/components/lib/animateonscroll/style/AnimateOnScrollStyle.js b/components/lib/animateonscroll/style/AnimateOnScrollStyle.js index ff8b4c563..2bb2ef131 100644 --- a/components/lib/animateonscroll/style/AnimateOnScrollStyle.js +++ b/components/lib/animateonscroll/style/AnimateOnScrollStyle.js @@ -1 +1,5 @@ -export default {}; +import BaseStyle from 'primevue/base/style'; + +export default BaseStyle.extend({ + name: 'animateonscroll-directive' +}); diff --git a/components/lib/badgedirective/style/BadgeDirectiveStyle.js b/components/lib/badgedirective/style/BadgeDirectiveStyle.js index a65cc2827..1de903ed8 100644 --- a/components/lib/badgedirective/style/BadgeDirectiveStyle.js +++ b/components/lib/badgedirective/style/BadgeDirectiveStyle.js @@ -5,6 +5,6 @@ const classes = { }; export default BaseStyle.extend({ - name: 'badge', + name: 'badge-directive', classes }); diff --git a/components/lib/base/style/BaseStyle.js b/components/lib/base/style/BaseStyle.js index 0e5cc4770..c62de86c7 100644 --- a/components/lib/base/style/BaseStyle.js +++ b/components/lib/base/style/BaseStyle.js @@ -38,7 +38,7 @@ export default { return this.css ? useStyle(ObjectUtils.minifyCSS(this.css), { name: this.name, ...options }) : {}; }, loadTheme(theme, options = {}) { - return theme ? useStyle(ObjectUtils.minifyCSS(theme), { name: `${this.name}-style`, ...options }) : {}; + return theme ? useStyle(ObjectUtils.minifyCSS(theme), { name: this.name, ...options }) : {}; }, getCommonThemeCSS(params) { return Theme.getCommonCSS(this.name, params); diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index 1343bcb18..4f3e01603 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -1,6 +1,6 @@