This repository was archived by the owner on Mar 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +31
-8
lines changed Expand file tree Collapse file tree 1 file changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,6 @@ const itemSeparator: ComponentSlotStyleFunction<MenuItemPropsAndState, MenuVaria
83
83
...( vertical ? { width : '100%' , height : '1px' } : { width : '1px' , height : '100%' } ) ,
84
84
...( primary ? { background : v . primaryBorderColor } : { background : v . borderColor } ) ,
85
85
} ,
86
-
87
- ...( vertical && {
88
- ':first-child' : {
89
- '::before' : {
90
- display : 'none' ,
91
- } ,
92
- } ,
93
- } ) ,
94
86
}
95
87
)
96
88
}
@@ -224,6 +216,37 @@ const menuItemStyles: ComponentSlotStylesInput<MenuItemPropsAndState, MenuVariab
224
216
225
217
// hover styles
226
218
':hover' : getFocusedStyles ( { props, variables : v , color : v . activeColor } ) ,
219
+
220
+ ':first-child' : {
221
+ ...( ! pills &&
222
+ ! iconOnly &&
223
+ ! ( pointing && vertical ) &&
224
+ ! underlined && {
225
+ ...( vertical && {
226
+ borderTopRightRadius : pxToRem ( 3 ) ,
227
+ borderTopLeftRadius : pxToRem ( 3 ) ,
228
+ '::before' : {
229
+ display : 'none' ,
230
+ } ,
231
+ } ) ,
232
+ ...( ! vertical && {
233
+ borderBottomLeftRadius : pxToRem ( 3 ) ,
234
+ borderTopLeftRadius : pxToRem ( 3 ) ,
235
+ } ) ,
236
+ } ) ,
237
+ } ,
238
+
239
+ ':last-child' : {
240
+ ...( ! pills &&
241
+ ! iconOnly &&
242
+ ! ( pointing && vertical ) &&
243
+ ! underlined && {
244
+ ...( vertical && {
245
+ borderBottomRightRadius : pxToRem ( 3 ) ,
246
+ borderBottomLeftRadius : pxToRem ( 3 ) ,
247
+ } ) ,
248
+ } ) ,
249
+ } ,
227
250
}
228
251
} ,
229
252
You can’t perform that action at this time.
0 commit comments