File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed
packages/component-library/src/Skeleton Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 1414.skeleton {
1515 border-radius : theme .border-radius (" lg" );
1616
17- .fullSkeleton {
17+ & .fullSkeleton {
1818 width : 100% ;
1919 }
2020
Original file line number Diff line number Diff line change @@ -28,20 +28,14 @@ const meta = {
2828export default meta ;
2929
3030export const Skeleton = {
31- args : {
32- label : "Loading" ,
33- width : 20 ,
34- } ,
35- } satisfies StoryObj < typeof SkeletonComponent > ;
36-
37- export const SkeletonFill : StoryObj < typeof SkeletonComponent > = {
3831 render : ( args ) => (
39- < div style = { { width : "100vw" } } >
32+ < div style = { { width : "100vw" , display : "flex" , justifyContent : "center" } } >
4033 < SkeletonComponent { ...args } />
4134 </ div >
4235 ) ,
4336 args : {
4437 label : "Loading" ,
45- fill : true ,
38+ fill : false ,
39+ width : 20 ,
4640 } ,
47- } ;
41+ } satisfies StoryObj < typeof SkeletonComponent > ;
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ export const Skeleton = ({
2020} : Props ) => (
2121 < span
2222 data-fill-width = { width === undefined ? "" : undefined }
23- { ...( width && { style : { "--skeleton-width" : width } as CSSProperties } ) }
23+ { ...( width &&
24+ ! fill && { style : { "--skeleton-width" : width } as CSSProperties } ) }
2425 className = { clsx (
2526 styles . skeleton ,
2627 { [ styles . fullSkeleton ?? "" ] : fill } ,
You can’t perform that action at this time.
0 commit comments