File tree 2 files changed +12
-0
lines changed
components/splitview/stories
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,15 @@ export default {
35
35
disable : true ,
36
36
} ,
37
37
} ,
38
+ isFocused : {
39
+ name : "Focusable" ,
40
+ type : "boolean" ,
41
+ table : {
42
+ type : { summary : "boolean" } ,
43
+ category : "Component" ,
44
+ disable : true ,
45
+ } ,
46
+ } ,
38
47
collapsePosition : {
39
48
name : "Collapse position" ,
40
49
type : "string" ,
@@ -100,6 +109,7 @@ HorizontallyFocused.play = async ({ canvasElement }) => {
100
109
} ;
101
110
HorizontallyFocused . args = {
102
111
orientation : "horizontal" ,
112
+ isFocused : true ,
103
113
isResizable : true ,
104
114
isCollapsible : false ,
105
115
panelLabels : [ "Left" , "Right" ] ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export const Template = ({
9
9
customClasses = [ ] ,
10
10
orientation = "horizontal" ,
11
11
isResizable = false ,
12
+ isFocused = false ,
12
13
isCollapsible = false ,
13
14
collapsePosition,
14
15
panelLabels = [ ] ,
@@ -44,6 +45,7 @@ export const Template = ({
44
45
< div
45
46
class =${ classMap ( {
46
47
[ `${ rootClass } -splitter` ] : true ,
48
+ [ "is-focused" ] : isFocused ,
47
49
[ "is-draggable" ] : isResizable ,
48
50
[ `is-collapsed-${ collapsibleClassName } ` ] : isCollapsible ,
49
51
} ) }
You can’t perform that action at this time.
0 commit comments