Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30ae677

Browse filesBrowse files
committed
fix: CSidebarNavDropdown: allow adding 'size' prop in 'icon' object coreui#76
1 parent d5c600b commit 30ae677
Copy full SHA for 30ae677

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎src/components/template/CSidebarNavDropdown.vue

Copy file name to clipboardExpand all lines: src/components/template/CSidebarNavDropdown.vue
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ export default {
7676
},
7777
computedIcon () {
7878
if (typeof this.icon === 'object') {
79+
const key = this.icon.size ? 'class' : 'customClasses'
7980
return Object.assign(
80-
{ customClasses: 'c-sidebar-nav-icon' },
81+
{ [`${key}`]: 'c-sidebar-nav-icon' },
8182
this.icon
8283
)
8384
} else {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.