Skip to content

Conversation

@amadulhaxxani
Copy link

This pull request improves accessibility for links on both the full and simple item pages by ensuring they are visually distinguishable by more than just color, in compliance with WCAG 1.4.1 guidelines. The changes add underlines and focus outlines to links that are not styled as buttons or icons.

Accessibility improvements:

  • Added CSS rules to full-item-page.component.scss so that links in .full-item-info (excluding buttons and icons) are underlined, with increased thickness on hover/focus, and a visible outline for keyboard focus.
  • Added similar CSS rules to item-page.component.scss for links in .item-page, ensuring consistent accessibility enhancements for simple item pages.

Adds underline and focus styles to links in full and simple item pages to meet WCAG 1.4.1 requirements, ensuring links are distinguishable by more than color alone and have visible focus outlines.
Updated SCSS selectors to prevent Font Awesome icon links (.fab, .fas, .far) from receiving underline styles intended for accessible text links, ensuring visual consistency and improved accessibility compliance.
@amadulhaxxani amadulhaxxani linked an issue Nov 20, 2025 that may be closed by this pull request
Replaces underline styles with bold and italic for non-button links in full and simple item page components to ensure links are distinguishable by more than color alone, addressing WCAG 1.4.1 requirements.
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 pull request enhances accessibility on item view pages by making links distinguishable through more than just color, addressing WCAG 1.4.1 compliance. The changes add visual styling (bold, italic, underlines) and keyboard focus indicators to standard links while excluding button-like and icon elements.

Key Changes:

  • Added CSS rules to make links bold and italic by default
  • Enhanced hover/focus states with increased underline thickness
  • Added visible focus outlines for keyboard navigation

Reviewed Changes

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

File Description
src/app/item-page/simple/item-page.component.scss Added accessibility styles for links within .item-page container, excluding buttons, badges, navigation links, and icon classes
src/app/item-page/full/full-item-page.component.scss Added similar accessibility styles for links within .full-item-info container, with fewer element exclusions than the simple view

Replaces hardcoded #1459c4 color with the $primary SCSS variable for link focus outlines in both full and simple item page components to improve theme consistency.
Added .badge, .nav-link, and .dropdown-item to the list of excluded classes for custom link styles to prevent unintended styling on these elements and improve WCAG compliance.
Cleaned up SCSS for full and simple item pages by removing redundant !important flags from link styling rules, improving maintainability and specificity.
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.

Links rely on color to be distinguishable on item-view page

2 participants