File tree 1 file changed +5
-5
lines changed
src/Elastic.Markdown/Slices/Layout
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
< li class = " block ml-2 pl-2 border-l-1 border-l-gray-200 group/li @(isCurrent ? " current " : string.Empty)" >
11
11
< div class = " flex" >
12
12
< a
13
- class = " sidebar-link my-1 ml-5 group-[.current]/li:text-blue-elastic! @(isCurrent ? " " : string.Empty)"
13
+ class = " sidebar-link my-1 ml-5 group-[.current]/li:text-blue-elastic! @(isCurrent ? " pointer - events - none " : string.Empty)"
14
14
href = " @f.Url"
15
15
@(isCurrent ? " aria-current=page" : string .Empty )>
16
16
@f .NavigationTitle
22
22
{
23
23
var g = folder .Group ;
24
24
var isCurrent = g .Index == Model .CurrentDocument ;
25
- var slug = g .Index ? .Title .Slugify ();
26
25
const int initialExpandLevel = 1 ;
27
26
var containsCurrent = g .HoldsCurrent (Model .CurrentDocument ) || g .ContainsCurrentPage (Model .CurrentDocument );
28
27
var shouldInitiallyExpand = containsCurrent || g .Depth <= initialExpandLevel ;
28
+ var uuid = Guid .NewGuid ().ToString ();
29
29
<li class =" flex flex-wrap @(g.Depth > 1 ? " ml-2 pl-2 border-l-1 border-l-gray-200 " : string.Empty)" >
30
- <label for =" @slug " class =" peer group/label flex items-center overflow-hidden @(g.Depth == 1 ? " mt-2 " : " " )" >
30
+ <label for =" @uuid " class =" peer group/label flex items-center overflow-hidden @(g.Depth == 1 ? " mt-2 " : " " )" >
31
31
<svg
32
32
xmlns =" http://www.w3.org/2000/svg"
33
33
fill =" none"
38
38
<path stroke-linecap =" round" stroke-linejoin =" round" d =" m19.5 8.25-7.5 7.5-7.5-7.5" />
39
39
</svg >
40
40
<input
41
- id =" @slug "
41
+ id =" @uuid "
42
42
type =" checkbox"
43
43
class =" hidden"
44
44
aria-hidden =" true"
47
47
>
48
48
<a
49
49
href =" @g.Index?.Url"
50
- class =" sidebar-link inline-block my-1 @(g.Depth == 1 ? " uppercase tracking-[0.05em] text-ink-light font-semibold " : string.Empty) @(containsCurrent ? " font-semibold " : string.Empty) @(isCurrent ? " current text-blue-elastic! " : string.Empty)" >
50
+ class =" sidebar-link inline-block my-1 @(g.Depth == 1 ? " uppercase tracking-[0.05em] text-ink-light font-semibold " : string.Empty) @(containsCurrent ? " font-semibold " : string.Empty) @(isCurrent ? " current pointer-events-none text-blue-elastic! " : string.Empty)" >
51
51
@g.Index ? .NavigationTitle
52
52
</a >
53
53
</label >
You can’t perform that action at this time.
0 commit comments