Skip to content

SpeedOptim#13

Merged
VatsalSy merged 5 commits intomainfrom
SpeedOptim
Mar 2, 2025
Merged

SpeedOptim#13
VatsalSy merged 5 commits intomainfrom
SpeedOptim

Conversation

@VatsalSy
Copy link
Member

@VatsalSy VatsalSy commented Mar 2, 2025

Description

This pull request includes the following changes:

  1. Removed the duplicate loading of the command-data.js script in the team.html layout. The script is already loaded in the page's <head>, so there's no need to load it again.
  2. Updated the id of a command palette command from email-team to contact-team to better reflect its purpose of allowing users to contact the team.
  3. Added an accessible name (aria-label) to all email copy buttons on the website to ensure that screen readers can properly announce the purpose of the button, which is to copy the email address.
  4. Added aria-label attributes to the social media links in the footer of the teaching-course.html, default.html, teaching.html, and team.html layouts to improve the accessibility of the website for users who rely on screen readers or other assistive technologies.
  5. Added an aria-label attribute to the YouTube channel link and the GitHub repository link, and adjusted the styling of the GitHub repository link to make it more visually consistent with the rest of the page.
  6. Removed the search command from the command palette. Search functionality is now available separately via the ⌘K shortcut.

Motivation and Context

These changes improve the accessibility and visual consistency of the website, making it more user-friendly for all visitors. The removal of the duplicate script loading and the search command also optimizes the performance of the website.

How Has This Been Tested?

These changes have been thoroughly tested in various browsers and devices to ensure they work as expected and do not introduce any regressions.

Types of changes

  • 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:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

VatsalSy added 5 commits March 2, 2025 10:59
The changes remove the duplicate loading of the `command-data.js` script in the `team.html` layout. This script is already loaded in the page's `<head>`, so there's no need to load it again.

Additionally, the changes update the `id` of a command palette command from `email-team` to `contact-team` to better reflect its purpose of allowing users to contact the team.
This change adds an accessible name (aria-label) to all email copy buttons on the website. This ensures that screen readers can properly announce the purpose of the button, which is to copy the email address.

The changes include:

- Adding an `aria-label` attribute to the email copy buttons in the HTML files, with the value "Copy email address {email_address}".
- Dynamically adding the `aria-label` attribute to any copy buttons that don't have it on the `DOMContentLoaded` event in the JavaScript file.

This improves the accessibility of the website for users who rely on screen readers or other assistive technologies.
The changes add `aria-label` attributes to the social media links in the footer of the `teaching-course.html`, `default.html`, `teaching.html`, and `team.html` layouts. This improves the accessibility of the website by providing descriptive labels for screen readers.
This commit introduces the following changes:

1. Adds an `aria-label` attribute to the YouTube channel link to
   provide a more descriptive label for screen readers.
2. Adds an `aria-label` attribute to the GitHub repository link to
   provide a more descriptive label for screen readers.
3. Adjusts the styling of the GitHub repository link to make it
   more visually consistent with the rest of the page.

These changes improve the accessibility and visual consistency of the
website, making it more user-friendly for all visitors.
BREAKING CHANGE: The search command has been removed from the command
palette. Search functionality is now available separately via the
⌘K shortcut.
@VatsalSy VatsalSy merged commit 2634b44 into main Mar 2, 2025
1 of 2 checks passed
@VatsalSy VatsalSy deleted the SpeedOptim branch March 29, 2025 19:55
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.

1 participant