Skip to content

Commit

Permalink
feat(added aria attributes to components): added aria roles and label…
Browse files Browse the repository at this point in the history
…s to some components

Added aria roles and labels to the checkbox, divider, label, and text components, the TextInput and
Button components are still a work in progress, aria attributes still needed for the dropdown,
modal, RangeSlider, and table components.

#266
  • Loading branch information
harrisonnoble committed Aug 20, 2021
1 parent e4925b0 commit 7b73659
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/Label/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ const Label = ({
}

const { labelProps: ariaProps, fieldProps: ariaFieldProps } = useLabel(mergedLabelProps);

// add aria props to the child component
const childrenWithAriaProps = React.Children.map(children, child => {
if (React.isValidElement(child)) {
Expand Down

0 comments on commit 7b73659

Please sign in to comment.