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

Spinner size prop replaces small/large #2579

Merged
merged 4 commits into from
Jun 11, 2018
Merged

Spinner size prop replaces small/large #2579

merged 4 commits into from
Jun 11, 2018

Conversation

giladgray
Copy link
Contributor

@giladgray giladgray commented Jun 8, 2018

  • 🔥 <Spinner size={30} /> replaces large/small sizing props. This works exactly like iconSize.
  • 🔥 Delete the Spinner CSS API docs as they're kinda worthless (must copy SVG path) and the component relies on SVG attributes now

Gilad Gray added 3 commits June 7, 2018 17:11
compute styles in JS instead of hardcoded in CSS - remove most of the styles!
@blueprint-bot
Copy link

fix InputGroup

Preview: documentation | landing | table

* `Spinner.SIZE_STANDARD`, `Spinner.SIZE_LARGE`.
* @default Spinner.SIZE_STANDARD = 50
*/
size?: number;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iconSize only allows passing in 16 or 20. Do we really want to support anything here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, you can pass any number: http://blueprintjs.com/docs/v2/#core/components/icon

but since icons are hinted at 16 and 20, you shouldn't use any other size unless you know exactly what you're doing. not true for spinners, they look good at any size

@blueprint-bot
Copy link

fix tests

Preview: documentation | landing | table

@giladgray giladgray merged commit 812ec5e into develop Jun 11, 2018
@giladgray giladgray deleted the gg/spinner-size branch June 11, 2018 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants