File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -539,6 +539,7 @@ export declare class CSidebarNavItem extends CLink {
539
539
badge ?: object
540
540
addLinkClasses ?: string
541
541
label ?: boolean
542
+ color ?: string
542
543
}
543
544
544
545
export declare class CSidebarNavTitle extends Vue { }
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ const props = Object.assign(
43
43
fontIcon: String ,
44
44
badge: Object ,
45
45
addLinkClasses: [String , Array , Object ],
46
- label: Boolean
46
+ label: Boolean ,
47
+ color: String
47
48
}
48
49
)
49
50
@@ -65,6 +66,7 @@ export default {
65
66
linkClasses () {
66
67
return [
67
68
this .label ? ' c-sidebar-nav-label' : ' c-sidebar-nav-link' ,
69
+ this .color && ` c-sidebar-nav-link-${ this .color } ` ,
68
70
this .addLinkClasses
69
71
]
70
72
},
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ const wrapper = mount(Component, {
10
10
badge : {
11
11
color : 'success' ,
12
12
text : 'NEW'
13
- }
13
+ } ,
14
+ color : 'success'
14
15
} ,
15
16
attrs : {
16
17
id : 'link'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ exports[`CSidebarNavItem.vue renders correctly 1`] = `
6
6
id = " link"
7
7
>
8
8
<a
9
- class = " c-sidebar-nav-link"
9
+ class = " c-sidebar-nav-link c-sidebar-nav-link-success "
10
10
href = " #"
11
11
target = " _self"
12
12
>
You can’t perform that action at this time.
0 commit comments