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 {
539539 badge ?: object
540540 addLinkClasses ?: string
541541 label ?: boolean
542+ color ?: string
542543}
543544
544545export declare class CSidebarNavTitle extends Vue { }
Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ const props = Object.assign(
4343 fontIcon: String ,
4444 badge: Object ,
4545 addLinkClasses: [String , Array , Object ],
46- label: Boolean
46+ label: Boolean ,
47+ color: String
4748 }
4849)
4950
@@ -65,6 +66,7 @@ export default {
6566 linkClasses () {
6667 return [
6768 this .label ? ' c-sidebar-nav-label' : ' c-sidebar-nav-link' ,
69+ this .color && ` c-sidebar-nav-link-${ this .color } ` ,
6870 this .addLinkClasses
6971 ]
7072 },
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ const wrapper = mount(Component, {
1010 badge : {
1111 color : 'success' ,
1212 text : 'NEW'
13- }
13+ } ,
14+ color : 'success'
1415 } ,
1516 attrs : {
1617 id : 'link'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ exports[`CSidebarNavItem.vue renders correctly 1`] = `
66 id = " link"
77>
88 <a
9- class = " c-sidebar-nav-link"
9+ class = " c-sidebar-nav-link c-sidebar-nav-link-success "
1010 href = " #"
1111 target = " _self"
1212 >
You can’t perform that action at this time.
0 commit comments