Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e895d2b

Browse files
committed
Fixed error in Firefox and selected button style
1 parent f71039a commit e895d2b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

util/gh-pages/index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@
7272
box-shadow: 0 0 3px var(--searchbar-shadow-color);
7373
}
7474

75+
div.panel div.panel-body .open button.dropdown-toggle {
76+
background: var(--searchbar-bg);
77+
color: var(--searchbar-fg);
78+
border-color: var(--theme-popup-border);
79+
filter: brightness(90%);
80+
}
81+
7582
.dropdown-toggle .badge {
7683
background-color: #777;
7784
}
@@ -536,7 +543,8 @@ <h2 class="panel-title">
536543
};
537544
$scope.groups = GROUPS_FILTER_DEFAULT;
538545
$scope.toggleDropdown = function (name, $event) {
539-
if (name === $scope.selectedDropdown && $event.path.find(x => x.tagName === 'BUTTON')) {
546+
const target = $event.target;
547+
if (name === $scope.selectedDropdown && target.closest('button')) {
540548
$scope.selectedDropdown = undefined;
541549
} else {
542550
$scope.selectedDropdown = name;

0 commit comments

Comments
 (0)