Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[CSidebarNavItem] Icon props are not passed to CIcon #76
Comments
Hi, thank you for the report! in fact, it doesn't work because 'customClasses' is set to 'c-sidebar-nav-icon' inside CSidebarNavItem overriding size prop in CIcon. Hotfix:
We will think of a better solution, and fixing documentation of CIcon (it doesn't say that using customClasses overrides size prop). |
@woothu, thank you for the hotfix! |
I am trying to adjust the size of icon in the CSidebarNavItem by passing icon as an object, such as
however the size prop is not passed to CIcon.
However, creating a CIcon with the
size
prop works just fineAfter searching through the code I saw that CIconRaw is imported instead of CIcon
coreui-vue/src/components/template/CSidebarNavDropdown.vue
Line 19 in ad9f36c
Could it be that importing CIconRaw instead of CIcon is to blame here?