Skip to content

Issue #49: Adding accesibility to checkbox,button as well a radio button.#50

Open
negxative wants to merge 5 commits intoCRED-CLUB:mainfrom
negxative:main
Open

Issue #49: Adding accesibility to checkbox,button as well a radio button.#50
negxative wants to merge 5 commits intoCRED-CLUB:mainfrom
negxative:main

Conversation

@negxative
Copy link
Copy Markdown

Issue: Not having accessibility feature in checkboxes ,buttons as well as radio buttons.

I wanted to contribute to the code as per what I've checked the keyboard accessibility was totally working for checkbox and buttons but there was no outline appearing for the same .
In case of radio buttons even though u could toggle a radio with tab and select but after it you cannot move further to select next radio button.

solutions:
1-> Solved for buttons by simply providing an outline: "auto" when we focus into the component and clicking on space was already enabled.
2-> For checkboxes as we are hiding original HTML checkbox but on pressing the tab or changing the value the focus goes to the original checkbox element because of which the outline visible outside the checkbox component on focus gets removed for this I added a ref to html checkbox to be controlled from our custom component
3-> For radio buttons I simply added tab indexing and accessibility

@negxative negxative requested a review from shanpriyan October 24, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants