-
Notifications
You must be signed in to change notification settings - Fork 53
Conversation
@@ -1,6 +1,10 @@ | |||
import { Func } from '../types' | |||
|
|||
// https://jsperf.com/startdust-callable |
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.
we may safely remove this reference as
- it is pointing to stale document
- we have all the necessary tooling now to measure performance on the Stardust's side
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.
Let's remove it 👍
|
||
import { sizeToPxValue as avatarSizeToPxValue } from '../Avatar/avatarStyles' | ||
|
||
const sizeToIconPaddingInPx: Record<SizeValue, 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.
these values need to be refined
Generated by 🚫 dangerJS |
Codecov Report
@@ Coverage Diff @@
## master #846 +/- ##
=======================================
Coverage 93.54% 93.54%
=======================================
Files 21 21
Lines 728 728
Branches 69 73 +4
=======================================
Hits 681 681
Misses 47 47 Continue to review full report at Codecov.
|
@@ -1,8 +1,8 @@ | |||
import { pxToRem } from '../../../../lib' | |||
import { ComponentSlotStylesInput, ICSSInJSStyle } from '../../../types' | |||
import { AvatarProps } from '../../../../components/Avatar/Avatar' | |||
import { AvatarProps } from '../../../..' |
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.
Can we still use the direct import?
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.
sure, thanks for catching this thing!
|
||
[`&.${Avatar.slotClassNames.image}`]: { | ||
...(isFontBased && getAvatarFontIconStyles(size, v)), | ||
}, |
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.
Actually, this is a single thing that stops me from the approve button.
I understand why Avatar
can know about Icon
, because it's a slot of Avatar
. But, I want to avoid the reserve coupling because Icon
is a primitive component 🤔
This PR fixes appearance of
Icon
component when it is provided intoimage
slot ofAvatar
component (originally reported here #795):Was
Now