Skip to content

Commit 9e3fbb4

Browse files
committed
Fight aria-role, get rid of world wrap button
1 parent abe86b2 commit 9e3fbb4

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

src/components/index-page/use-cases/index.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,14 @@ export function UseCases({
122122
<div className="3xl:flex-1" />
123123
</div>
124124

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">
126126
<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">
131128
{USE_CASES.map((useCase, i) => (
132129
<Fragment key={useCase.label}>
133130
<button
134131
type="button"
135-
role="tab"
136-
aria-controls={`graphql-use-case-${i}`}
132+
role="none" // we already have one copy of this tab
137133
onPointerDown={() => setSelectedIndex(i)}
138134
onFocus={() => setSelectedIndex(i)}
139135
aria-selected={i === selectedIndex ? "true" : undefined}
@@ -170,7 +166,7 @@ export function UseCases({
170166
</Fragment>
171167
))}
172168
</div>
173-
</article>
169+
</div>
174170
</div>
175171
</section>
176172
)

src/components/index-page/what-is-graphql/api-gateway-query.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
```graphql
1+
```graphql word-wrap=false
22
query getCity($city: String) {
33
cities(name: $city) {
44
population

src/components/index-page/what-is-graphql/api-gateway-response.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
```json
1+
```json word-wrap=false
22
{
33
"data": {
44
"cities": [

src/components/pre/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function Pre({
2828
}: PreProps): ReactElement {
2929
const preRef = useRef<HTMLPreElement | null>(null)
3030

31+
3132
const copyButton = copy === "" && (
3233
<CopyToClipboard
3334
tabIndex={props.tabIndex}

0 commit comments

Comments
 (0)