File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ export function tabWidget (options: TabWidgetOptions) {
182
182
const rootElement : TabWidgetElement = dom . createElement ( 'div' ) // 20200117a
183
183
184
184
rootElement . setAttribute ( 'style' , style . tabsRootElement )
185
- rootElement . style . flexDirection = ( vertical ? 'row' : 'column' ) + ( flipped ? '-reverse; ' : '; ' )
185
+ rootElement . style . flexDirection = ( vertical ? 'row' : 'column' ) + ( flipped ? '-reverse' : '' )
186
186
187
187
const navElement = rootElement . appendChild ( dom . createElement ( 'nav' ) )
188
188
navElement . setAttribute ( 'style' , style . tabsNavElement )
Original file line number Diff line number Diff line change @@ -178,22 +178,22 @@ describe('tabWidget', () => {
178
178
} )
179
179
it ( 'positions tabs on top by default' , ( ) => {
180
180
tabWidgetElement = tabs . tabWidget ( minimalOptions )
181
- expect ( tabWidgetElement . style [ 'flex-direction' ] ) . toEqual ( 'column; ' )
181
+ expect ( tabWidgetElement . style [ 'flex-direction' ] ) . toEqual ( 'column' )
182
182
} )
183
183
184
184
it ( 'can position tabs on right' , ( ) => {
185
185
tabWidgetElement = tabs . tabWidget ( { orientation : '1' , ...minimalOptions } )
186
- expect ( tabWidgetElement . style [ 'flex-direction' ] ) . toEqual ( 'row; ' )
186
+ expect ( tabWidgetElement . style [ 'flex-direction' ] ) . toEqual ( 'row' )
187
187
} )
188
188
189
189
it ( 'can position tabs on bottom' , ( ) => {
190
190
tabWidgetElement = tabs . tabWidget ( { orientation : '2' , ...minimalOptions } )
191
- expect ( tabWidgetElement . style [ 'flex-direction' ] ) . toEqual ( 'column-reverse; ' )
191
+ expect ( tabWidgetElement . style [ 'flex-direction' ] ) . toEqual ( 'column-reverse' )
192
192
} )
193
193
194
194
it ( 'can position tabs on left' , ( ) => {
195
195
tabWidgetElement = tabs . tabWidget ( { orientation : '3' , ...minimalOptions } )
196
- expect ( tabWidgetElement . style [ 'flex-direction' ] ) . toEqual ( 'row-reverse; ' )
196
+ expect ( tabWidgetElement . style [ 'flex-direction' ] ) . toEqual ( 'row-reverse' )
197
197
} )
198
198
} )
199
199
You can’t perform that action at this time.
0 commit comments