Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
disable aria role check as too strict
Browse files Browse the repository at this point in the history
  • Loading branch information
SiAdcock committed Oct 8, 2020
1 parent e504db4 commit 6f15ea4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/core/components/choice-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, {
ReactElement,
useState,
InputHTMLAttributes,
ChangeEventHandler
ChangeEventHandler,
} from "react"
import { SerializedStyles } from "@emotion/core"
import {
Expand Down Expand Up @@ -69,7 +69,13 @@ const ChoiceCardGroup = ({
)}
{supporting ? <SupportingText>{supporting}</SupportingText> : ""}
{typeof error === "string" && <InlineError>{error}</InlineError>}
<div css={columns ? [gridContainer, gridColumns[columns] ] : flexContainer}>
<div
css={
columns
? [gridContainer, gridColumns[columns]]
: flexContainer
}
>
{React.Children.map(children, (child) => {
return React.cloneElement(
child,
Expand Down Expand Up @@ -126,6 +132,7 @@ const ChoiceCard = ({

return (
<>
{/* eslint-disable-next-line jsx-a11y/role-supports-aria-props*/}
<input
css={(theme) => [
input(theme.choiceCard && theme),
Expand Down

0 comments on commit 6f15ea4

Please sign in to comment.