File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const CSidebarNavItem = props => {
1919 badge,
2020 addLinkClass,
2121 label,
22+ color,
2223 ...rest
2324 } = props
2425
@@ -30,6 +31,7 @@ const CSidebarNavItem = props => {
3031
3132 const linkClasses = classNames (
3233 label ? 'c-sidebar-nav-label' : 'c-sidebar-nav-link' ,
34+ color && `c-sidebar-nav-link-${ color } ` ,
3335 addLinkClass
3436 )
3537
@@ -55,14 +57,14 @@ const CSidebarNavItem = props => {
5557CSidebarNavItem . propTypes = {
5658 children : PropTypes . node ,
5759 className : PropTypes . string ,
58- //
5960 innerRef : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . string , PropTypes . object ] ) ,
6061 icon : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . object ] ) ,
6162 fontIcon : PropTypes . string ,
6263 badge : PropTypes . object ,
6364 addLinkClass : PropTypes . string ,
6465 label : PropTypes . bool ,
65- name : PropTypes . string
66- } ;
66+ name : PropTypes . string ,
67+ color : PropTypes . string
68+ }
6769
6870export default CSidebarNavItem
You can’t perform that action at this time.
0 commit comments