File tree 2 files changed +24
-3
lines changed
examples/query/react/suspense/src
2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,18 @@ export function PokemonPlaceholder({
21
21
22
22
let content : React . ReactNode = isError ? (
23
23
< >
24
- < h3 > An error has occurred while loading { name } </ h3 >
24
+ < h3 className = 'alert__heading' > An error has occurred while loading { name } </ h3 >
25
25
< div > { error ?. message } </ div >
26
26
{ onRetry && (
27
- < button type = "button" className = "btn" onClick = { onRetry } >
27
+ < button type = "button" className = "btn alert__btn " onClick = { onRetry } >
28
28
retry
29
29
</ button >
30
30
) }
31
31
{ children }
32
32
</ >
33
33
) : (
34
34
< >
35
- < h3 > Loading pokemon { name } </ h3 >
35
+ < h3 className = 'alert__heading' > Loading pokemon { name } </ h3 >
36
36
< br />
37
37
(Suspense fallback)
38
38
{ children }
Original file line number Diff line number Diff line change 11
11
--primary : # 6c3eb7 ;
12
12
}
13
13
14
+ hr {
15
+ box-sizing : border-box;
16
+ height : 2px ;
17
+ border : none;
18
+ border-top : 2px solid var (--primary );
19
+ }
20
+
21
+
22
+ input [type = "range" ] {
23
+ max-width : 100px ;
24
+ }
25
+
14
26
body {
15
27
margin : 0 ;
16
28
}
@@ -134,6 +146,15 @@ h3 {
134
146
background : var (--danger-bg );
135
147
}
136
148
149
+ .alert__heading {
150
+ color : inherit;
151
+ }
152
+
153
+ .alert__btn {
154
+ color : inherit !important ;
155
+ border-color : currentColor;
156
+ }
157
+
137
158
.alert--info {
138
159
color : var (--info );
139
160
background-color : var (--info-bg );
You can’t perform that action at this time.
0 commit comments