-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
compute styles in JS instead of hardcoded in CSS - remove most of the styles!
fix InputGroupPreview: documentation | landing | table |
* `Spinner.SIZE_STANDARD`, `Spinner.SIZE_LARGE`. | ||
* @default Spinner.SIZE_STANDARD = 50 | ||
*/ | ||
size?: number; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
fix testsPreview: documentation | landing | table |
<Spinner size={30} />
replaceslarge
/small
sizing props. This works exactly likeiconSize
.