There are width and height props being passed but they don't seem to be used anywhere, furthermore width & height are calculated based on the size props which decided the actual size of the Loading Component.
Also, height prop seems vain as width and height should be the same for appropriate proportions.
Expected should be width & height props should override the " Calculated Size "
Expected Result :
Actual results (or Errors)
Also in tests it seems to add default size even with passing custom props
Bug report 🐞
I would create a PR for it.
Version & Environment
1.19.90
2.1.3
Expection
In the file : Loading.tsx
There are
width
andheight
props being passed but they don't seem to be used anywhere, furthermorewidth
&height
are calculated based on thesize
props which decided the actual size of the Loading Component.Also,
height
prop seems vain as width and height should be the same for appropriate proportions.Expected should be
width
&height
props should override the " Calculated Size "Expected Result :
Actual results (or Errors)
Also in tests it seems to add
default size
even with passing custom propshttps://github.com/geist-org/react/blob/502da720f163a7dc5b171fcbb7c2f3098939013b/components/loading/__tests__/index.test.tsx#L38
Snapshots:
https://github.com/geist-org/react/blob/502da720f163a7dc5b171fcbb7c2f3098939013b/components/loading/__tests__/__snapshots__/index.test.tsx.snap#L108
https://github.com/geist-org/react/blob/502da720f163a7dc5b171fcbb7c2f3098939013b/components/loading/__tests__/__snapshots__/index.test.tsx.snap#L173