-
Notifications
You must be signed in to change notification settings - Fork 235
Closed
Labels
APIIssues or PRs involving API changesIssues or PRs involving API changesComponent: Action groupComponent: CheckboxComponent: ComboboxComponent: PickerComponent: RadioComponent: Range sliderComponent: SliderComponent: SwitchComponent: Textfielda11yIssues or PRs related to accessibilityIssues or PRs related to accessibilityjira ticket createdTODO: Delete label once Jira integration is completeTODO: Delete label once Jira integration is complete
Description
Code of conduct
- I agree to follow this project's code of conduct.
Description of issue
sp-checkbox doesn't expose a "name" attribute in its API:
<input
id="input"
aria-labelledby="label"
type="checkbox"
.checked=${this.checked}
@change=${this.handleChange}
/>
I was wondering if either 1) name could be added to the API or 2) all properties that aren't used exclusively by the wrapping component could be passed through to the input.
Same thought applies to all inputs wrapped by Spectrum.
As a coder, a goal would be to leverage built-in Javascript API's and therefore be able to write simpler and less risky code, such as:
const formData = new FormData(form);
Metadata
Metadata
Assignees
Labels
APIIssues or PRs involving API changesIssues or PRs involving API changesComponent: Action groupComponent: CheckboxComponent: ComboboxComponent: PickerComponent: RadioComponent: Range sliderComponent: SliderComponent: SwitchComponent: Textfielda11yIssues or PRs related to accessibilityIssues or PRs related to accessibilityjira ticket createdTODO: Delete label once Jira integration is completeTODO: Delete label once Jira integration is complete