Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Spinner Component #266

Open
afonsobspinto opened this issue May 29, 2020 · 1 comment
Open

Create Spinner Component #266

afonsobspinto opened this issue May 29, 2020 · 1 comment
Assignees
Labels

Comments

@afonsobspinto
Copy link
Member

afonsobspinto commented May 29, 2020

Basic behavior of the component to be created should allow:

  • Work as an overlay
  • Work in full-screen
  • Content is centered both horizontally and vertically
  • Default background is as current

The spinner shows as one of the material ui spinners available: https://material-ui.com/components/progress/

  • <Spinner active="true" /> shows a CircularProgress in primary color
  • <Spinner active="false" /> hides the spinner
  • <Spinner active="true" messages={["Message"]} /> adds a message below the CircularProgress (mockup needed)
  • <Spinner active="true" messages={["Message1", "Message2" ]} /> alternates the 2 messages
  • <Spinner active="true" elapsed={0.1} /> shows a linear determinate at 10%
  • <Spinner active="true" backgroundStyle={{ color: black; opacity: 0.5}} /> changes the overlay background style
  • <Spinner active="true" >My content</Spinner> sets an alternative content to the spinner (nothing else is shown inside the spinner)
    To Do:
  • <Spinner active="true" fullscreen={True} /> makes the spinner fill the fullscreen or just the parent container.
  • Change from Data Viewers to Navigation
  • Add className props to change typography c.lassName.
@afonsobspinto afonsobspinto self-assigned this May 29, 2020
afonsobspinto added a commit that referenced this issue Jul 3, 2020
afonsobspinto added a commit that referenced this issue Jul 12, 2020
afonsobspinto added a commit that referenced this issue Jul 12, 2020
filippomc pushed a commit that referenced this issue Jul 21, 2020
* Add spinner

* Update spinner

* Remove log

* Rename spinner to loader

* Update background color + opacity to rgba

* WIP - Center loader

* Fix grid center items #266

* Remove comments

* WIP - Add loader example 6

* Add fullscreen prop #266

* Add className to typography #266
@filippomc filippomc reopened this Aug 18, 2020
@filippomc
Copy link
Contributor

@afonsobspinto I'm leaving issues open until we include the feature in a release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants