You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[WithTooltipPure and WithTooltipState are removed](#withtooltippure-and-withtooltipstate-are-removed)
42
+
-[WithTooltipPure and WithTooltipState are deprecated](#withtooltippure-and-withtooltipstate-are-deprecated)
49
43
-[From version 8.x to 9.0.0](#from-version-8x-to-900)
50
44
-[Core Changes and Removals](#core-changes-and-removals)
51
45
-[Dropped support for legacy packages](#dropped-support-for-legacy-packages)
@@ -657,7 +651,7 @@ IconButton will be removed in future versions.
657
651
658
652
#### Bar Component API Changes
659
653
660
-
The `Bar` component's internal layout has changed. It now applies flex positioning and applies a default item gap, that can be controlled with the `innerStyle` prop.
654
+
The `Bar` component's internal layout has changed, to fix a height bug in scrollable bars. It now applies flex positioning and applies a default item gap, that can be controlled with the `innerStyle` prop. You may see slight changes in default padding as a result of this change.
661
655
662
656
##### Added: innerStyle
663
657
When `scrollable` is set to `true`, `Bar` now adds an inner container that is used to ensure the scrollbar size does not impact the height of the bar. This inner container displays as 'flex' and has the following default style:
@@ -699,14 +693,11 @@ The `TabBar` component, a styled bar used inside `Tabs` and not intended to be p
699
693
700
694
#### Modal Component API Changes
701
695
702
-
##### Removed: container and portalSelector
703
-
The `container` and `portalSelector` props were not used inside Storybook, so they have been removed. The new Modal component does not support custom portal locations, because it is not recommended practice. A single portal at the end of the document ensures modals appear in their order of creation and are never cropped by CSS `overflow` properties.
696
+
##### Deprecated: onInteractOutside
697
+
The `onInteractOutside` prop is deprecated in favor of `dismissOnClickOutside`, because it was only used to close the modal when clicking outside. Use `dismissOnClickOutside` to control whether clicking outside the modal should close it or not.
704
698
705
-
##### Removed: onInteractOutside
706
-
The `onInteractOutside` prop is removed in favor of `dismissOnClickOutside`, because it was only used to close the modal when clicking outside. Use `dismissOnClickOutside` to control whether clicking outside the modal should close it or not.
707
-
708
-
##### Removed: onEscapeKeyDown
709
-
The `onEscapeKeyDown` prop is removed in favor of `dismissOnEscape`, because it was only used to close the modal when pressing Escape. Use `dismissOnEscape` to control whether pressing Escape should close it or not.
699
+
##### Deprecated: onEscapeKeyDown
700
+
The `onEscapeKeyDown` prop is deprecated in favor of `dismissOnEscape`, because it was only used to close the modal when pressing Escape. Use `dismissOnEscape` to control whether pressing Escape should close it or not.
710
701
711
702
##### Added: `ariaLabel`
712
703
Modal elements must have atitle to be accessible. Set that title through the `ariaLabel` prop. It will become mandatory in Storybook 11.
@@ -721,24 +712,6 @@ The ListItem and TooltipLinkList components were used in Storybook to make menus
721
712
722
713
These components are now deprecated and will be removed in future versions. To replace TooltipMessage, replace WithTooltip with WithPopover, and use Popover as abase component for your popovers. To replace ListItem and TooltipLinkList, a dedicated menu component will be introduced in a future version, and Popover can be used in the meantime.
723
714
724
-
#### Tooltip Component API Changes
725
-
726
-
##### Renamed: tooltipRef
727
-
Tooltip's `ref` prop is now named `ref` for consistency.
728
-
729
-
##### Removed: arrowProps and withArrows
730
-
The `arrowProps` and `withArrows` props were not used in Storybook, so they have been removed.
731
-
732
-
We recommend you do not use arrows in your addon tooltips for better consistency with the Storybook UI.
733
-
734
-
##### Removed: placement
735
-
The `placement` prop was passed to help position the arrow. It has also been removed. WithToolip now entirely handles the placement of its tooltip on its own.
736
-
737
-
##### Changed type: color
738
-
The `color` prop used to accept arbitrary colors and theme background color names. This made it difficult to use.
739
-
740
-
The prop was to the background color of the tooltip, and it was not possible to set the text color in a consistent fashion. To ensure Tooltip uses accessible colors, the prop has been limited to the following values: `'default'`, `'inverse'`, `'positive'`, `'negative'`, `'warning'` and `'none'`. The prop now controls both background and foreground colors.
741
-
742
715
#### WithPopover Component Added
743
716
744
717
The WithPopover component acts as a counterpoint to WithTooltip. When you want an interactive overlay with buttons or inputs, use WithPopover and Popover. When you want a static overlay that shows on focus or hover, use WithTooltip with TooltipNote or Tooltip.
@@ -747,6 +720,8 @@ WithPopover is based on react-aria. It must have a single child that acts as a t
747
720
748
721
#### WithTooltip Component API Changes
749
722
723
+
The WithTooltip component has been reimplemented from the ground up. The new implementation is exported as `WithTooltipNew` in Storybook 10, and will replace `WithTooltip` entirely in Storybook 11. Below is asummary of the changes between both APIs, which will take full effect in Storybook 11.
724
+
750
725
##### Removed: trigger
751
726
The `trigger` prop was removed to enforce better accessibility compliance. WithTooltip must not be triggered on click, as it is not reachable by keyboard. Buttons that open a popover, menu or select must use appropriate components instead.
752
727
@@ -771,9 +746,9 @@ Thed `interactive` prop has been removed as it does not align with our vision fo
771
746
##### Other changes
772
747
The underlying implementation was switched from Popper.js to react-aria. Due to these changes, WithTooltip must now have a single child that has a focusable role and that can receive React refs. Wrap your trigger component in `forwardRef` if you notice placement issues for your tooltip.
773
748
774
-
#### WithTooltipPure and WithTooltipState are removed
749
+
#### WithTooltipPure and WithTooltipState are deprecated
775
750
776
-
Instead, use WithTooltip. For a controlled tooltip, use the `onVisibleChange` and `visible` props. For an uncontrolled tooltip with a default open state, use the `defaultVisible` prop.
751
+
Instead, use`WithTooltipNew` in Storybook 10, or `WithTooltip` in Storybook 11 or newer. For a controlled tooltip, use the `onVisibleChange` and `visible` props. For an uncontrolled tooltip with a default open state, use the `defaultVisible` prop.
0 commit comments