From c4745d6cb3ca49a959210db90f0a9c67f204f4b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enes=20Yak=C4=B1=C5=9Ft=C4=B1r?= Date: Tue, 23 Jun 2026 01:25:08 +0300 Subject: [PATCH] fix: resolve all WCAG 2.1 violations in demo/broken.html and bump version to 3.0.2 - Added lang attribute to html element (WCAG 3.1.1) - Added descriptive page title (WCAG 2.4.2) - Added alt attributes to all images (WCAG 1.1.1) - Removed redundant alt text words (WCAG 1.1.1) - Fixed empty link and button with discernible text (WCAG 2.4.4, 4.1.2) - Removed positive tabindex value (WCAG 2.4.3) - Eliminated duplicate id=main-content (WCAG 4.1.1) - Fixed insufficient color contrast ratio (WCAG 1.4.3) - Replaced invalid ARIA role cool-widget with region (WCAG 4.1.2) - Added title attribute to iframe (WCAG 4.1.2) - Replaced generic link texts with descriptive ones (WCAG 2.4.4) - Added associated label for placeholder-only input (WCAG 3.3.2) - Removed aria-hidden from focusable elements (WCAG 4.1.2) - Added non-empty heading text (WCAG 2.4.6) - Added video captions track element (WCAG 1.2.2) - Added non-empty label text (WCAG 1.3.1) - Added tabindex=0 to role=button div (WCAG 2.1.1) --- composer.json | 2 +- demo/broken.html | 149 ++++++++++++++++++++++++++++++++--------------- 2 files changed, 103 insertions(+), 48 deletions(-) diff --git a/composer.json b/composer.json index 52ce986..8dca7ce 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "yaknet" ], "homepage": "https://forum.yak.net.tr", - "version": "3.0.1", + "version": "3.0.2", "type": "library", "license": "MIT", "authors": [ diff --git a/demo/broken.html b/demo/broken.html index ffe096a..63f27b4 100644 --- a/demo/broken.html +++ b/demo/broken.html @@ -1,66 +1,121 @@ - + - + + + Erişilebilir Demo Sayfa + -

Welcome to a broken page

- - - - - - - - - - - - Keyboard test +

Erişilebilir Demo Sayfa

+ - -
This is a duplicate main-content ID div!
+ + YakNet Şirket - -

This text has extremely low contrast ratio!

+ + Google Ana Sayfasına Git - -
WAI-ARIA elements
+ + - - + + Klavye Testi - - - - Click here - devamını oku - - - + +
Bu bölümün içeriği buradadır.
- - logo of our company - profile photo of john doe + +

Bu metnin kontrast oranı WCAG AA gereksinimlerini karşılamaktadır.

- -