File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -122,18 +122,14 @@ export function UseCases({
122
122
< div className = "3xl:flex-1" />
123
123
</ div >
124
124
125
- < article className = "relative flex h-auto flex-col bg-sec-base dark:bg-sec-darker" >
125
+ < div className = "relative flex h-auto flex-col bg-sec-base dark:bg-sec-darker" >
126
126
< Stripes />
127
- < div
128
- role = "tablist"
129
- className = "flex flex-1 justify-center overflow-hidden max-lg:flex-col lg:items-center"
130
- >
127
+ < div className = "flex flex-1 justify-center overflow-hidden max-lg:flex-col lg:items-center" >
131
128
{ USE_CASES . map ( ( useCase , i ) => (
132
129
< Fragment key = { useCase . label } >
133
130
< button
134
131
type = "button"
135
- role = "tab"
136
- aria-controls = { `graphql-use-case-${ i } ` }
132
+ role = "none" // we already have one copy of this tab
137
133
onPointerDown = { ( ) => setSelectedIndex ( i ) }
138
134
onFocus = { ( ) => setSelectedIndex ( i ) }
139
135
aria-selected = { i === selectedIndex ? "true" : undefined }
@@ -170,7 +166,7 @@ export function UseCases({
170
166
</ Fragment >
171
167
) ) }
172
168
</ div >
173
- </ article >
169
+ </ div >
174
170
</ div >
175
171
</ section >
176
172
)
Original file line number Diff line number Diff line change 1
- ``` graphql
1
+ ``` graphql word-wrap=false
2
2
query getCity ($city : String ) {
3
3
cities (name : $city ) {
4
4
population
Original file line number Diff line number Diff line change 1
- ``` json
1
+ ``` json word-wrap=false
2
2
{
3
3
"data" : {
4
4
"cities" : [
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export function Pre({
28
28
} : PreProps ) : ReactElement {
29
29
const preRef = useRef < HTMLPreElement | null > ( null )
30
30
31
+
31
32
const copyButton = copy === "" && (
32
33
< CopyToClipboard
33
34
tabIndex = { props . tabIndex }
You can’t perform that action at this time.
0 commit comments