Skip to content

Commit 7bf2ef8

Browse files
authored
Merge pull request #2772 from XeroAlpha/fix-comment-tag-wrapper-class
Use tag instead of display name as class name
2 parents 02919b7 + 983aa5e commit 7bf2ef8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/internationalization/locales/zh.cts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export = localeUtils.buildIncompleteTranslation({
377377
kind_call_signature: "调用签名",
378378
kind_index_signature: "索引签名",
379379
kind_constructor_signature: "构造函数签名",
380-
kind_parameter: "范围",
380+
kind_parameter: "参数",
381381
kind_type_literal: "类型字面量",
382382
kind_type_parameter: "类型参数",
383383
kind_accessor: "访问器",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function commentTags(context: DefaultThemeRenderContext, props: Reflectio
7979

8080
return (
8181
<>
82-
<div class={`tsd-tag-${name}`}>
82+
<div class={`tsd-tag-${item.tag.substring(1)}`}>
8383
<h4 class="tsd-anchor-link">
8484
<a id={anchor} class="tsd-anchor"></a>
8585
{name}

0 commit comments

Comments
 (0)