File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,16 @@ const LazyLoadComponent: FC<
49
49
< div ref = { ref } className = "components-overview-item" >
50
50
{ isVisible && (
51
51
< 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 >
57
62
</ Suspense >
58
63
) }
59
64
</ div >
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ kol-link-button {
141
141
color : # 00cc00 ;
142
142
background-color : # e6ffe6 ;
143
143
}
144
-
144
+
145
145
.token .deleted-sign {
146
146
color : # cc0000 ;
147
147
background-color : # ffe6e6 ;
@@ -157,6 +157,15 @@ kol-link-button {
157
157
}
158
158
159
159
.components-overview-item {
160
+ position : relative;
160
161
height : 300px ;
162
+ }
163
+
164
+ .components-overview-item a {
165
+ position : absolute;
166
+ width : 100% ;
167
+ height : 100% ;
168
+ left : 0 ;
169
+ top : 0 ;
161
170
cursor : pointer;
162
171
}
You can’t perform that action at this time.
0 commit comments