-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #11 🎫: Accessibility issues #16
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Add 'aria-label' and 'role' to the nav element. - Add 'aria-label' to all -anchor- elements and -Link- components. - Update all 'title' attributes.
- Add 'aria-label' and 'role' to the nav element. - Add 'aria-label' to all -anchor- elements and -Link- components. - Move all 'title' attributes from -React icons- to -Link- components.
- The new 'showSubmitButton' local state will be used to conditionally render the submit button. - Added label elements to all inputs. - With the addition of label elements, now in 'setInputStyle' we need to access the second 'nextSibling' element to access the next input after that input's label. - Removed 'setSubmitButtonStyle' function since now the styles will be applied conditionally in the component class name. - Without the 'setSubmitButtonStyle' function, now at the 'validateInput' function we now will style and show the button by toggling the 'showSubmitButton' state based on the validity of all inputs.
- Enhance accessibility. - Rename component import and usage in 'AboutPage'. - Rename style file and class names.
✅ Good for merge. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
Optimize
Optimization: Efficiency & Performance
redeploy
gh-pages deployment
UI/UX
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Summary for Issue #11 Completion
Overview:
Changes Made:
Added:
Modified:
.gitignore
pr.md
to the.gitignore
file..vscode/terminals.json
/package.json
and/package-lock.json
@babel/core
to^7.24.0
./src/components/UI/ContactForm.tsx
Several changes were made to the
ContactForm
component to make it more accessible, provide a better user experience and to make the code more readable and maintainable.Added labels to the form inputs.
The
setSubmitButtonStyle
function was removed and replaced with auseEffect
hook to update the new local stateshowSubmitButton
at thevalidateInput
function, which is used to conditionally render the submit button as well as to update the submit button's style class.The
validateInput
function was updated to now add theshow
class to the element (input) after this element label, i.e. next sibling x2.show
class is still added to the next input but first it needs to skip the label of the following input./src/components/UI/FileTabsNavbar.tsx
nav
element.aria-label
attribute, and atitle
attribute. (Note: This title attribute was before in every React icon component.)./src/components/UI/LineCount.tsx
lines
constant after it's comments.window resize
event listener when the component is unmounted.true
to make sure it is not read by screen readers as it is not relevant, since it is merely a visual effect./src/components/UI/Navbar.tsx
aria-label
androle
to thenav
element.isOpen
was added to provide information to the aria expanded and aria label attributes./src/components/animations/Drone.tsx
and/src/components/animations/FloatingAstronaut.tsx
true
to make sure it is not read by screen readers as it is not relevant, since it is merely a visual effect./src/components/pages/AboutPage.tsx
AnimatedButton
component toExpertiseLinks
and updated the reference to it./src/styles/UI/ContactForm.scss
display
ofnone
by default since it should only be visible to the screen reader..send-email-icon
i.e. the waving alien at form submit, will have a fade in effect./src/styles/UI/Navbar.scss
fixed
to make sure it is always visible and accessible to the user./src/styles/variables/_colors.scss
$light-gray
color from#515151
to#7d7d7d
to provide a better contrast with the off-black background.Deleted/Renamed
/src/components/UI/AnimatedButton.tsx
=>/src/components/UI/ExpertiseLinks.tsx
/src/styles/UI/AnimatedButton.scss
=>/src/styles/UI/ExpertiseLinks.scss
Impact:
Testing:
Related Issues:
Dependencies:
Additional Notes: