Skip to content

Commit b2c42c4

Browse files
docs(splitview): fix horizontally-focused variant to display properly
1 parent 45f48fc commit b2c42c4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

components/splitview/stories/splitview.stories.js

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ export default {
3535
disable: true,
3636
},
3737
},
38+
isFocused: {
39+
name: "Focusable",
40+
type: "boolean",
41+
table: {
42+
type: { summary: "boolean" },
43+
category: "Component",
44+
disable: true,
45+
},
46+
},
3847
collapsePosition: {
3948
name: "Collapse position",
4049
type: "string",
@@ -100,6 +109,7 @@ HorizontallyFocused.play = async ({ canvasElement }) => {
100109
};
101110
HorizontallyFocused.args = {
102111
orientation: "horizontal",
112+
isFocused: true,
103113
isResizable: true,
104114
isCollapsible: false,
105115
panelLabels: ["Left", "Right"],

components/splitview/stories/template.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const Template = ({
99
customClasses = [],
1010
orientation = "horizontal",
1111
isResizable = false,
12+
isFocused = false,
1213
isCollapsible = false,
1314
collapsePosition,
1415
panelLabels = [],
@@ -44,6 +45,7 @@ export const Template = ({
4445
<div
4546
class=${classMap({
4647
[`${rootClass}-splitter`]: true,
48+
["is-focused"]: isFocused,
4749
["is-draggable"]: isResizable,
4850
[`is-collapsed-${collapsibleClassName}`]: isCollapsible,
4951
})}

0 commit comments

Comments
 (0)