Releases: instacart/Snacks
v0.0.159
delayCalculatePosition
Introducing a new prop delayCalculatePosition
to Tooltip
that propagates to TooltipOverlay > TooltipPosition
.
A client must pass in delayCalculatePosition={true}
when consuming the Tooltip react component.
When delayCalculatePosition is set to true, TooltipPosition will wait 300ms before doing the calculation of tooltip offsets.
This delay is necessary for cases when the overlays are not set and final, and prevents expensive and buggy recalculation as opposed to getting it right the first time.
Note: This also reverts 0.0.157's change of using offsetWidth instead of scrollWidth.
0.0.158 will use scrollWidth.
so this.calculatePosition() is reverted to be the same as versions prior to 0.0.157
0.0.157 (#461)
Bugfixes
- Tooltip - fix ScrollWidth that is dynamic causing incorrect calculatePosition
v0.0.155
v0.0.154
Ensure consistent styling of NavigationPills styling
v0.0.153
Add labelElementType prop to NavigationPills
v0.0.151
v0.0.148
Change from radium package (no longer maintained) to @instacart/radium.
v0.0.147
🐛 fix:
Fix NavigationPills ref issue