Skip to content

Commit

Permalink
Fix tooltips within color/style dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Mar 23, 2022
1 parent 02562bb commit 535cd0d
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions packages/components/src/border-control/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { useState } from '@wordpress/element';
* Internal dependencies
*/
import { BorderControl } from '../';
import { Provider as SlotFillProvider } from '../../slot-fill';
import Popover from '../../popover';

export default {
title: 'Components (Experimental)/BorderControl',
Expand Down Expand Up @@ -77,20 +79,23 @@ const _default = ( props ) => {
const { __experimentalHasMultipleOrigins } = props;

return (
<WrapperView>
<BorderControl
{ ...props }
colors={
__experimentalHasMultipleOrigins
? multipleOriginColors
: colors
}
label="Border"
onChange={ onChange }
value={ border }
width={ ! props.isCompact && props.width }
/>
</WrapperView>
<SlotFillProvider>
<WrapperView>
<BorderControl
{ ...props }
colors={
__experimentalHasMultipleOrigins
? multipleOriginColors
: colors
}
label="Border"
onChange={ onChange }
value={ border }
width={ ! props.isCompact && props.width }
/>
</WrapperView>
<Popover.Slot />
</SlotFillProvider>
);
};

Expand Down

0 comments on commit 535cd0d

Please sign in to comment.