Skip to content

Commit e6c9572

Browse files
committed
(#6140) Review changes
1 parent 98a6623 commit e6c9572

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

dev/src/components/docs/ComponentList.tsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,16 @@ const LazyLoadComponent: FC<
4949
<div ref={ref} className="components-overview-item">
5050
{isVisible && (
5151
<Suspense fallback={<div className="skeleton"></div>}>
52-
<a tabIndex={0} onKeyDown={handleRedirect} onClick={handleRedirect}>
53-
<KolCard aria-label={formattedComponentName} role="img" _level={2} _label={formattedComponentName}>
54-
<SampleComponent lang={lang} />
55-
</KolCard>
56-
</a>
52+
<a tabIndex={0} onKeyDown={handleRedirect} onClick={handleRedirect}></a>
53+
<KolCard
54+
tabIndex={-1}
55+
aria-label={formattedComponentName}
56+
role="img"
57+
_level={2}
58+
_label={formattedComponentName}
59+
>
60+
<SampleComponent lang={lang} />
61+
</KolCard>
5762
</Suspense>
5863
)}
5964
</div>

dev/src/css/custom.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ kol-link-button {
141141
color: #00cc00;
142142
background-color: #e6ffe6;
143143
}
144-
144+
145145
.token.deleted-sign {
146146
color: #cc0000;
147147
background-color: #ffe6e6;
@@ -157,6 +157,15 @@ kol-link-button {
157157
}
158158

159159
.components-overview-item {
160+
position: relative;
160161
height: 300px;
162+
}
163+
164+
.components-overview-item a {
165+
position: absolute;
166+
width: 100%;
167+
height: 100%;
168+
left: 0;
169+
top: 0;
161170
cursor: pointer;
162171
}

0 commit comments

Comments
 (0)