Skip to content

Commit 3427e1d

Browse files
authored
fix(v8 FocusZone): Add wrapping to FocusZone examples to avoid truncation on smaller screens (#34975)
1 parent a807890 commit 3427e1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-examples/src/react-focus/FocusZone/FocusZone.Disabled.Example.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const FocusZoneDisabledExample: React.FunctionComponent = () => {
1212
return (
1313
<Stack tokens={tokens} horizontalAlign="start">
1414
<FocusZone direction={FocusZoneDirection.horizontal}>
15-
<Stack tokens={tokens} horizontal verticalAlign="center">
15+
<Stack tokens={tokens} horizontal verticalAlign="center" wrap>
1616
<span>Enabled FocusZone: </span>
1717
<DefaultButton>Button 1</DefaultButton>
1818
<DefaultButton>Button 2</DefaultButton>
@@ -22,7 +22,7 @@ export const FocusZoneDisabledExample: React.FunctionComponent = () => {
2222
</FocusZone>
2323
<DefaultButton>Tabbable Element 1</DefaultButton>
2424
<FocusZone disabled={true}>
25-
<Stack tokens={tokens} horizontal verticalAlign="center">
25+
<Stack tokens={tokens} horizontal verticalAlign="center" wrap>
2626
<span>Disabled FocusZone: </span>
2727
<DefaultButton>Button 1</DefaultButton>
2828
<DefaultButton>Button 2</DefaultButton>

packages/react-examples/src/react-focus/FocusZone/FocusZone.Tabbable.Example.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const FocusZoneTabbableExample: React.FunctionComponent = () => {
2828
handleTabKey={FocusZoneTabbableElements.all}
2929
isCircularNavigation={true}
3030
>
31-
<Stack tokens={tokens} horizontal verticalAlign="center">
31+
<Stack tokens={tokens} horizontal verticalAlign="center" wrap>
3232
<span>Circular Tabbable FocusZone: </span>
3333
<DefaultButton>Button 1</DefaultButton>
3434
<DefaultButton>Button 2</DefaultButton>
@@ -48,7 +48,7 @@ export const FocusZoneTabbableExample: React.FunctionComponent = () => {
4848
handleTabKey={FocusZoneTabbableElements.inputOnly}
4949
isCircularNavigation={false}
5050
>
51-
<Stack tokens={tokens} horizontal verticalAlign="center">
51+
<Stack tokens={tokens} horizontal verticalAlign="center" wrap>
5252
<span>Input Only FocusZone: </span>
5353
<DefaultButton>Button 1</DefaultButton>
5454
<DefaultButton>Button 2</DefaultButton>

0 commit comments

Comments
 (0)