Skip to content

fix: add text alternative for external link icon in LTI components#24

Merged
naincy128 merged 1 commit intorelease-ulmofrom
cosmos2-719
Nov 4, 2025
Merged

fix: add text alternative for external link icon in LTI components#24
naincy128 merged 1 commit intorelease-ulmofrom
cosmos2-719

Conversation

@naincy128
Copy link

Description

Fixes an accessibility issue in LTI components where the external link icon lacked a text alternative.
Added visually hidden text to ensure screen readers announce that the link opens in a new window, complying with WCAG 1.1.1 (Non-text Content).

Fix Summary

  • Added hidden text (opens in a new window) next to the external link icon.
  • Marked the icon with aria-hidden="true".
  • Ensured consistency with text component external link behavior.

Jira Ticket

COSMO2-719

@naincy128 naincy128 marked this pull request as ready for review November 2, 2025 03:05
Copilot AI review requested due to automatic review settings November 2, 2025 03:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the accessibility of LTI (Learning Tools Interoperability) launch elements by adding screen reader support for external link indicators and updating the launch button structure.

  • Replaced plain input submit button with a more accessible button element in the LTI fixture
  • Added "External link" screen reader text to both the fixture and template to improve accessibility
  • Included a status span element in the fixture for potential launch state feedback

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
xmodule/js/fixtures/lti.html Replaced input submit with button element containing icon, screen reader text, and status span
lms/templates/lti.html Added screen reader text for external link indicator to improve accessibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@jcapphelix jcapphelix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go.

@naincy128 naincy128 merged commit ac02b33 into release-ulmo Nov 4, 2025
70 checks passed
@naincy128 naincy128 deleted the cosmos2-719 branch November 4, 2025 18: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