File tree Expand file tree Collapse file tree 8 files changed +43
-11
lines changed
routes/components/navs/vertical/vertical-nav-item/properties
components/navs/c-nav-vertical-item Expand file tree Collapse file tree 8 files changed +43
-11
lines changed Original file line number Diff line number Diff line change 52
52
< c-nav-horizontal-item
53
53
position ="right "
54
54
href ="https://github.com/bindable-ui/bindable "
55
- title ="v1.11.10 "
55
+ title ="v1.11.11 "
56
56
> </ c-nav-horizontal-item >
57
57
</ c-nav-horizontal >
58
58
</ l-box >
Original file line number Diff line number Diff line change 38
38
title ="Accordion Sub 2 "
39
39
href ="http://google.com "
40
40
sub-text ="Sub Text Here "
41
+ prefix-icon ="share "
41
42
> </ c-nav-vertical-item >
42
43
< c-nav-vertical-item
43
44
title ="Accordion Sub 3 "
91
92
92
93
< div >
93
94
< l-stack spacing ="var(--s-3) ">
94
- < c-h3 > icon</ c-h3 >
95
+ < c-h3 > icons & prefix-icon</ c-h3 >
96
+ < c-notification type ="info "> NOTE: The `icon` property requires an accompanying `icon-action` property to render on hover. The `prefix-icon` property will always render and has no accompanying action property.</ c-notification >
95
97
< c-code-sample >
96
98
< c-nav-vertical c-nav-vertical style ="height: 200px; display: block; ">
97
- < c-nav-vertical-item state ="active " title ="Nav Link 1 " href ="http://google.com " icon ="cog "> </ c-nav-vertical-item >
99
+ < c-nav-vertical-item state ="active " title ="Nav Link 1 " href ="http://google.com " prefix- icon ="share "> </ c-nav-vertical-item >
98
100
< c-nav-vertical-item title ="Nav Link 2 " href ="http://google.com " icon ="cog " icon-action.call ="fireIconFunction() "> </ c-nav-vertical-item >
99
101
</ c-nav-vertical >
100
102
</ c-code-sample >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @bindable-ui/bindable" ,
3
3
"description" : " An Aurelia component library" ,
4
- "version" : " 1.11.10 " ,
4
+ "version" : " 1.11.11 " ,
5
5
"repository" : {
6
6
"type" : " git" ,
7
7
"url" : " https://github.com/bindable-ui/bindable"
8
8
},
9
9
"license" : " MIT" ,
10
10
"devDependencies" : {
11
- "@bindable-ui/bindable-icons" : " ^0.3.0 " ,
11
+ "@bindable-ui/bindable-icons" : " ^0.3.2 " ,
12
12
"@types/jest" : " ^24.9.1" ,
13
13
"@types/jquery" : " ^3.5.14" ,
14
14
"@types/lodash" : " ^4.14.181" ,
Original file line number Diff line number Diff line change @@ -187,11 +187,19 @@ Licensed under the terms of the MIT license. See the LICENSE file in the project
187
187
.nav-vertical-item c-nav-vertical ul li a {
188
188
padding-top : 0 ;
189
189
padding-bottom : 0 ;
190
- padding-left : 50 px ;
190
+ padding-left : 36 px ;
191
191
font-size : inherit;
192
192
word-break : break-word;
193
193
}
194
194
195
+ .nav-vertical-item c-nav-vertical ul li a l-icon .prefix-icon {
196
+ position : absolute;
197
+ top : 8px ;
198
+ left : 14px ;
199
+ padding : 0 0 5px 5px ;
200
+ display : inline-flex;
201
+ }
202
+
195
203
/* If the nav item has sub-text */
196
204
.nav-vertical-item c-nav-vertical ul li a span {
197
205
font-size : inherit;
@@ -294,6 +302,18 @@ Licensed under the terms of the MIT license. See the LICENSE file in the project
294
302
295
303
296
304
305
+ /*------------------------------------*\
306
+ !PREFIX ICON
307
+ \*------------------------------------*/
308
+
309
+ .prefix-icon {
310
+ position : absolute;
311
+ top : 8px ;
312
+ left : 2px ;
313
+ padding : 0 0 5px 5px ;
314
+ display : inline-flex;
315
+ /* margin-left: -16px;*/
316
+ }
297
317
298
318
299
319
/*------------------------------------*\
Original file line number Diff line number Diff line change 37
37
if.bind ="!accordionItem && title "
38
38
click.delegate ="clickTrigger() "
39
39
>
40
+ < l-icon
41
+ if.bind ="prefixIcon "
42
+ icon ="${prefixIcon} "
43
+ size ="0.875em "
44
+ align ="-0.125em "
45
+ spacing ="0 "
46
+ class ="${styles.prefixIcon} "
47
+ > </ l-icon >
40
48
${title}
41
49
< span
42
50
class ="${styles.sub} "
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ export class CNavVerticalItem {
23
23
@bindable
24
24
public href ;
25
25
@bindable
26
+ public prefixIcon ;
27
+ @bindable
26
28
public icon ;
27
29
@bindable
28
30
public iconAction ;
Original file line number Diff line number Diff line change @@ -673,7 +673,7 @@ c-nav-vertical{
673
673
--nav-item-background-hover : var (--c_ash );
674
674
--nav-item-color-active : var (--c_white );
675
675
--nav-item-background-active : var (--c_black );
676
- --nav-item-active-bar-size : var ( --s-5 ) ;
676
+ --nav-item-active-bar-size : 4 px ;
677
677
--nav-item-active-bar-color-active : var (--c_primaryMain );
678
678
--nav-item-active-bar-color-hover : var (--nav-background );
679
679
--nav-item-active-bar-color : var (--nav-background-color );
Original file line number Diff line number Diff line change 387
387
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
388
388
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
389
389
390
- " @bindable-ui/bindable-icons@^0.3.0 " :
391
- version "0.3.0 "
392
- resolved "https://registry.yarnpkg.com/@bindable-ui/bindable-icons/-/bindable-icons-0.3.0 .tgz#c72a07a3cb1d57f05c3ab998a1d970e76adf65ea "
393
- integrity sha512-yT0xqISa87Z95UJ96fnwXgp7v6uHUKFv9FcqZSDuvTb75qlKC7sBNhEl1PGn3sa5GAC2QmExjZEpDyuFyGTubA ==
390
+ " @bindable-ui/bindable-icons@^0.3.2 " :
391
+ version "0.3.2 "
392
+ resolved "https://registry.yarnpkg.com/@bindable-ui/bindable-icons/-/bindable-icons-0.3.2 .tgz#9d5262b0037a84fb2ad6cfad2960a58d7207df0f "
393
+ integrity sha512-XfC3eZTB2Kgl01qemxxnk79MF5eouBgJAClw9MfGAII816yqMO59SnXOCLuXFoXIH2v/b4nbk3fFkU5FWBxUjg ==
394
394
395
395
" @cnakazawa/watch@^1.0.3 " :
396
396
version "1.0.4"
You can’t perform that action at this time.
0 commit comments