We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to adjust the size of icon in the CSidebarNavItem by passing icon as an object, such as
<CSidebarNavItem name="Dashboard" to="/dashboard" :icon="{name: 'cil-chart', size: '4xl'}" />
however the size prop is not passed to CIcon. However, creating a CIcon with the size prop works just fine
size
<CIcon name="cil-chart" size="4xl"/>
After 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?
The text was updated successfully, but these errors were encountered:
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:
<CSidebarNavItem name="Dashboard" to="/dashboard" :icon="{name: 'cil-chart', customClasses: 'c-sidebar-nav-icon c-icon c-icon-4xl'}" />
We will think of a better solution, and fixing documentation of CIcon (it doesn't say that using customClasses overrides size prop).
Sorry, something went wrong.
@woothu, thank you for the hotfix!
fix: CSidebarNavItem: allow adding 'size' prop in 'icon' object #76
a1a8203
fix: CSidebarNavDropdown: allow adding 'size' prop in 'icon' object #76
30ae677
No branches or pull requests
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 fine<CIcon name="cil-chart" size="4xl"/>
After 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?
The text was updated successfully, but these errors were encountered: