Skip to content

Commit 878e06a

Browse files
committed
Fix broken settings icons
Resolves #2408
1 parent f2d2abe commit 878e06a

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Unreleased
22

3+
### Features
4+
5+
- Improved support for multi-word searches, #2400.
6+
7+
### Bug Fixes
8+
9+
- Fixed broken settings icons caused by icon caching introduced in 0.25.1, #2408.
10+
11+
### Thanks!
12+
13+
- @schiem
14+
315
## v0.25.1 (2023-09-04)
416

517
### Features

src/lib/output/themes/default/partials/icon.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ export function buildRefIcons<T extends Record<string, () => JSX.Element>>(icons
2525
for (const [name, builder] of Object.entries(icons)) {
2626
const jsx = builder.call(icons);
2727
assert(jsx.tag === "svg", "TypeDoc's frontend assumes that icons are written as svg elements");
28+
// This one cannot be cached because the CSS selector depends on targeting SVG elements
29+
// within it. Ick. Surely there's a nicer way?
30+
if (name === "checkbox") {
31+
refs[name] = () => jsx;
32+
continue;
33+
}
2834

2935
children.push(<g id={`icon-${name}`}>{jsx.children}</g>);
3036
const ref = (

0 commit comments

Comments
 (0)