Accessibility considerations for Card Component and Secure Fields
mainThe Card component and Secure Fields have been optimized for accessibility (a11y) to comply with WCAG standards. Key improvements include:
- Secure Fields iframes: The
role="presentation"attribute has been removed from iframes used for secure field inputs (card number, expiry date, CVC). This ensures compliance with WCAG SC 4.1.2 (Name, Role, Value) and avoids WCAG Failure F92, whererole="presentation"on interactive content conflicts with ARIA specifications and can cause inconsistent behavior across screen readers. - Decorative Images: To prevent redundant announcements by screen readers, purely decorative elements are hidden from assistive technology following WCAG SC 1.1.1 (Non-text Content):
- CVC hint SVGs use
aria-hidden. - Expiry date hints and placeholder brand icon images use
alt="". - Note: Real detected brand icons will still retain their full brand name as
alttext to ensure they remain informative.
- CVC hint SVGs use