mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 01:30:46 +00:00
Remove page href from arrows
As having href causes arrows to be clickable before JavaScript handler be loaded. And since that disables visited logic, let's remove it. Change-Id: Ice4c979d020342890fffd587bb5bee88fcc2a1ae
This commit is contained in:
parent
cbde447eaf
commit
77b047b12b
|
@ -354,7 +354,6 @@ class CategoryTree {
|
|||
// href and role will be added client-side
|
||||
'class' => 'CategoryTreeToggle',
|
||||
'data-ct-title' => $key,
|
||||
'href' => $title->getLocalURL(),
|
||||
];
|
||||
|
||||
if ( $children === 0 ) {
|
||||
|
|
|
@ -83,10 +83,6 @@
|
|||
.CategoryTreeToggle {
|
||||
transition: transform 250ms ease;
|
||||
.expandable-arrow( @color-progressive );
|
||||
|
||||
&:visited {
|
||||
.expandable-arrow( @color-visited );
|
||||
}
|
||||
}
|
||||
|
||||
.CategoryTreeEmptyBullet,
|
||||
|
|
|
@ -117,11 +117,11 @@ Tag with CategoryTree root and two subcategories
|
|||
!! wikitext
|
||||
<categorytree>CategoryTree root</categorytree>
|
||||
!! html/php
|
||||
<div class="CategoryTreeTag" data-ct-options="{"mode":0,"hideprefix":20,"showcount":false,"namespaces":false,"notranslations":false}"><div class="CategoryTreeSection"><div class="CategoryTreeItem"><span class="CategoryTreeBullet"><a class="CategoryTreeToggle" data-ct-title="CategoryTree_root" href="/wiki/Category:CategoryTree_root" data-ct-loaded="1" aria-expanded="true"></a> </span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_root" title="Category:CategoryTree root">CategoryTree root</a></bdi></div><div class="CategoryTreeChildren"><div class="CategoryTreeSection"><div class="CategoryTreeItem"><span class="CategoryTreeEmptyBullet"></span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_1" title="Category:CategoryTree 1">CategoryTree 1</a></bdi></div><div class="CategoryTreeChildren" style="display:none"></div></div><div class="CategoryTreeSection"><div class="CategoryTreeItem"><span class="CategoryTreeEmptyBullet"></span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_2" title="Category:CategoryTree 2">CategoryTree 2</a></bdi></div><div class="CategoryTreeChildren" style="display:none"></div></div></div></div></div>
|
||||
<div class="CategoryTreeTag" data-ct-options="{"mode":0,"hideprefix":20,"showcount":false,"namespaces":false,"notranslations":false}"><div class="CategoryTreeSection"><div class="CategoryTreeItem"><span class="CategoryTreeBullet"><a class="CategoryTreeToggle" data-ct-title="CategoryTree_root" data-ct-loaded="1" aria-expanded="true"></a> </span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_root" title="Category:CategoryTree root">CategoryTree root</a></bdi></div><div class="CategoryTreeChildren"><div class="CategoryTreeSection"><div class="CategoryTreeItem"><span class="CategoryTreeEmptyBullet"></span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_1" title="Category:CategoryTree 1">CategoryTree 1</a></bdi></div><div class="CategoryTreeChildren" style="display:none"></div></div><div class="CategoryTreeSection"><div class="CategoryTreeItem"><span class="CategoryTreeEmptyBullet"></span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_2" title="Category:CategoryTree 2">CategoryTree 2</a></bdi></div><div class="CategoryTreeChildren" style="display:none"></div></div></div></div></div>
|
||||
!! html/parsoid
|
||||
<div class="CategoryTreeTag" data-ct-options='{"mode":0,"hideprefix":20,"showcount":false,"namespaces":false,"notranslations":false}' typeof="mw:Extension/categorytree" data-mw='{"name":"categorytree","attrs":{},"body":{"extsrc":"CategoryTree root"}}'>
|
||||
<div class="CategoryTreeSection">
|
||||
<div class="CategoryTreeItem"><span class="CategoryTreeBullet"><a class="CategoryTreeToggle" data-ct-title="CategoryTree_root" href="/wiki/Category:CategoryTree_root" data-ct-loaded="1" aria-expanded="true"></a> </span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_root" title="Category:CategoryTree root">CategoryTree root</a></bdi></div>
|
||||
<div class="CategoryTreeItem"><span class="CategoryTreeBullet"><a class="CategoryTreeToggle" data-ct-title="CategoryTree_root" data-ct-loaded="1" aria-expanded="true"></a> </span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_root" title="Category:CategoryTree root">CategoryTree root</a></bdi></div>
|
||||
<div class="CategoryTreeChildren">
|
||||
<div class="CategoryTreeSection">
|
||||
<div class="CategoryTreeItem"><span class="CategoryTreeEmptyBullet"></span> <bdi dir="ltr"><a href="/wiki/Category:CategoryTree_1" title="Category:CategoryTree 1">CategoryTree 1</a></bdi></div>
|
||||
|
|
Loading…
Reference in a new issue