From 42345f106f26c3d114fc22c2d21b80e159493f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 25 May 2023 17:43:15 +0300 Subject: [PATCH] Refactor #3965 - For Skeleton --- components/lib/skeleton/BaseSkeleton.vue | 8 ++++++-- components/lib/skeleton/Skeleton.vue | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/components/lib/skeleton/BaseSkeleton.vue b/components/lib/skeleton/BaseSkeleton.vue index dbceb652b..c957582eb 100644 --- a/components/lib/skeleton/BaseSkeleton.vue +++ b/components/lib/skeleton/BaseSkeleton.vue @@ -4,7 +4,6 @@ import { useStyle } from 'primevue/usestyle'; const styles = ` .p-skeleton { - position: relative; overflow: hidden; } @@ -38,6 +37,10 @@ const styles = ` } `; +const inlineStyles = { + root: { position: 'relative' } +}; + const classes = { root: ({ props }) => [ 'p-skeleton p-component', @@ -80,7 +83,8 @@ export default { } }, css: { - classes + classes, + inlineStyles }, watch: { isUnstyled: { diff --git a/components/lib/skeleton/Skeleton.vue b/components/lib/skeleton/Skeleton.vue index 6717c1dea..ad2e48874 100644 --- a/components/lib/skeleton/Skeleton.vue +++ b/components/lib/skeleton/Skeleton.vue @@ -1,5 +1,5 @@