From b86cc474bddb9a57a76e76965001536c7d6e1c9e Mon Sep 17 00:00:00 2001 From: Abdul Khalid Date: Sun, 6 Aug 2023 19:24:44 +0530 Subject: [PATCH 1/2] styles: add screen reader only styles to hide labels visually --- assets/css/enquiry-form.css | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/assets/css/enquiry-form.css b/assets/css/enquiry-form.css index eee5944..822a62b 100644 --- a/assets/css/enquiry-form.css +++ b/assets/css/enquiry-form.css @@ -55,7 +55,7 @@ .enquiry-form .spandiv small { color: #e74c3c; - } + } .enquiry-form button{ padding: 15px; @@ -70,4 +70,13 @@ border-radius: 10px; } - +.sr-only-labels { + position: absolute; + width: 1px; + height: 1px; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} From 2023b7155a9e51ddb7f7e0128d788c141e949dcc Mon Sep 17 00:00:00 2001 From: Abdul Khalid Date: Sun, 6 Aug 2023 19:31:18 +0530 Subject: [PATCH 2/2] feat: make contact us form accessible --- index.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 09b3126..715ebff 100644 --- a/index.html +++ b/index.html @@ -427,7 +427,8 @@

Contact Us

GET IN TOUCH
- Enter Your Name: +
@@ -436,7 +437,8 @@

Contact Us

- Enter Your Mail: +
@@ -445,7 +447,8 @@

Contact Us

- + +
@@ -453,14 +456,15 @@

Contact Us

- + +
-