This removal of the label property is in response to the following test error in Course Planner: "TestingLibraryElementError: Found a label with the text of: Course Notes, however the element associated with this label () is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a , you can use aria-label or aria-labelledby instead."
The styled text area is already being labelled using the combination of the htmlFor property in the InputLabel component along with the id property in the StyledTextArea component.
Describe your changes
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality
to change)
Checklist:
[x] I have run eslint on the code
[x] I have added JSDoc for all of my code (where applicable)
This removal of the
label
property is in response to the following test error in Course Planner: "TestingLibraryElementError: Found a label with the text of: Course Notes, however the element associated with this label () is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a , you can use aria-label or aria-labelledby instead."The styled text area is already being labelled using the combination of the
htmlFor
property in theInputLabel
component along with theid
property in theStyledTextArea
component.Describe your changes
Types of changes
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #638