Skip to content

Commit 1812e86

Browse files
committed
Update downstream API usages/references 🤦
1 parent 60d3439 commit 1812e86

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

changelogs/upcoming/7455.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- Updated `EuiResizableButton` with a new `showIndicator` prop, which allows replacing the default grab handle with a plain border
1+
- Updated `EuiResizableButton` to allow customizing the `indicator` style with either `handle` (default) or `border`

src-docs/src/views/resizable_container/resizable_button_indicator.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default () => (
1818
<EuiText>{text}</EuiText>
1919
</EuiResizablePanel>
2020

21-
<EuiResizableButton showIndicator={false} />
21+
<EuiResizableButton indicator="border" />
2222

2323
<EuiResizablePanel
2424
initialSize={50}
@@ -36,7 +36,7 @@ export default () => (
3636
<EuiText>{text}</EuiText>
3737
</EuiResizablePanel>
3838

39-
<EuiResizableButton showIndicator={false} />
39+
<EuiResizableButton indicator="border" />
4040

4141
<EuiResizablePanel initialSize={50} minSize="50px" tabIndex={0}>
4242
<EuiText>{text}</EuiText>

src-docs/src/views/resizable_container/resizable_container_example.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,9 @@ export const ResizableContainerExample = {
521521
indicator as a UI hint. For use cases where the resize behavior is
522522
"nice to have" but not a primary UX focus, or where there are many
523523
other busy UI elements on the page, you can set{' '}
524-
<EuiCode>{'showIndicator={false}'}</EuiCode> to display a subdued
525-
border element instead, which only provides resize affordance on
526-
hover or focus.
524+
<EuiCode>indicator="border"</EuiCode> to display a subdued border
525+
element instead, which only provides resize affordance on hover or
526+
focus.
527527
</p>
528528
</>
529529
),
@@ -532,7 +532,7 @@ export const ResizableContainerExample = {
532532
props: { EuiResizableButton },
533533
snippet: `<EuiResizableButton
534534
isHorizontal
535-
showIndicator={false}
535+
indicator="border"
536536
/>`,
537537
},
538538
{

src/components/flyout/flyout_resizable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const EuiFlyoutResizable = forwardRef(
147147
>
148148
<EuiResizableButton
149149
isHorizontal
150-
showIndicator={false}
150+
indicator="border"
151151
css={cssStyles}
152152
onMouseDown={onMouseDown}
153153
onTouchStart={onMouseDown}

src/components/resizable_container/resizable_button.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const meta: Meta<EuiResizableButtonProps> = {
2121
component: EuiResizableButton,
2222
args: {
2323
// Component defaults
24-
showIndicator: true,
24+
indicator: 'handle',
2525
alignIndicator: 'center',
2626
disabled: false,
2727
isHorizontal: false,

0 commit comments

Comments
 (0)