Skip to content

Commit

Permalink
Merge pull request #3826 from OpenLiberty/javadoc_tab_staging
Browse files Browse the repository at this point in the history
Fixed tab hovering in javadocs
  • Loading branch information
SteveSamJacob19 authored Aug 6, 2024
2 parents 4bf45af + 66142c3 commit 50df5f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,13 @@ ul.nav-list li {
float: none; }

/* doesn't seem to pick up this on focus */
.clickableNavListTab, ul.nav-list li:focus {
ul.nav-list li:focus {
background-color: #D6D9E4;
color: #253441; }

.clickableNavListTab {
color: #bb7a2a; }

.clickableNavListTab:hover {
cursor: pointer; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,12 @@
float: none; }

/* doesn't seem to pick up this on focus */
.clickableNavListTab, ul.nav-list li:focus {
ul.nav-list li:focus {
background-color: #D6D9E4;
color: #253441; }

.clickableNavListTab {
color: #bb7a2a; }

.clickableNavListTab:hover {
cursor: pointer; }
Expand Down
4 changes: 2 additions & 2 deletions src/main/content/antora_ui/src/js/06-javadocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ function hideFooter(element) {

function addNavHoverListener() {
var javadoc_container = $("#javadoc_container").contents();
var rightFrame = javadoc_container.find(CLASS_FRAME);
var tabs = rightFrame.contents().find("ul.navList li:has(a)");
var navHeader = javadoc_container.find(".top-nav");
var tabs = navHeader.contents().find("li:has(a)");
tabs.off("mouseover").on("mouseover", function() {
$(this).addClass("clickableNavListTab");
});
Expand Down

0 comments on commit 50df5f8

Please sign in to comment.