Skip to content

Commit 4df53ed

Browse files
authored
Merge pull request #220 from wpaccessibility/218-new-design
New design for wpaccessibility.org
2 parents 0156893 + fde49e2 commit 4df53ed

File tree

162 files changed

+1563
-1548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+1563
-1548
lines changed

_includes/components/footer.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
<footer>
33

44
<p>
5+
<span aria-hidden="true">&#x2191;</span>
56
<a href="#top" id="back-to-top" class="back-to-top">
6-
<span aria-hidden="true">&#x2191;</span> Back to top
7+
Back to top
78
</a>
89
</p>
910

_includes/components/github.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
site.gh_edit_link_text and
1212
site.gh_edit_repository
1313
%}
14-
<p class="text-small text-grey-dk-000 mb-0">
14+
<p class="text-small">
1515
<a href="{{ site.gh_edit_repository }}/tree/main/{{ page.path }}" id="edit-this-page">{{ site.gh_edit_link_text }}</a>
1616
</p>
1717
{% endif %}
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="search">
1+
<section class="search" aria-label="Search">
22
<form class="search-input-wrap" role="search" action="{{ site.baseurl }}/search/" method="get">
33
<label for="search-input" class="search-label">
44
<span class="screen-reader-text">Search {{ site.title }}</span>
@@ -7,17 +7,16 @@
77
</svg>
88
</label>
99

10-
<input
11-
type="search"
12-
id="search-input"
13-
name="q"
14-
class="search-input"
15-
placeholder="Search {{ site.title }}"
10+
<input
11+
type="search"
12+
id="search-input"
13+
name="q"
14+
class="search-input"
1615
autocomplete="off"
1716
>
1817

1918
<button type="submit" class="search-submit">Search</button>
2019
</form>
2120

2221
<div id="search-results" class="search-results"></div>
23-
</div>
22+
</section>

_includes/components/sidebar.html

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@
22
<header class="site-header">
33

44
<div class="lh-wrapper">
5-
<img src="{{site.baseurl}}/assets/images/logo.jpg" alt="Accessibility: Advocate Equal Access">
6-
<a href="{{ '/' | relative_url }}" class="site-title lh-tight">
7-
{{ site.title}}</a>
5+
<a href="{{ '/' | relative_url }}" class="site-title lh-tight" aria-label="WP Accessibility logo, to the homepage">
6+
<img src="{{site.baseurl}}/assets/images/logo-wa11ypuu.png" alt="WP Accessibility logo">
7+
{{ site.title }}
8+
</a>
89
</div>
9-
<button id="menu-button" class="site-button btn-reset" aria-expanded="false">
10-
<span>Menu</span>
11-
<svg viewBox="0 0 24 24" class="icon" aria-hidden="true">
12-
<use xlink:href="#svg-menu"></use>
13-
</svg>
14-
</button>
10+
11+
<div class="menu-button-wrapper">
12+
<button id="menu-button" class="site-button" aria-expanded="false">
13+
<span>Menu</span>
14+
<svg viewBox="0 0 24 24" class="icon" focusable="false" aria-hidden="true">
15+
<use xlink:href="#svg-menu"></use>
16+
</svg>
17+
</button>
18+
<div>
19+
1520
</header>
1621

1722
{% include_cached components/site_nav.html %}

_includes/components/site_nav.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
<nav aria-label="Main" id="site-nav" class="site-nav" tabindex="0">
1313

14-
<h2 class="screen-reader-text">Menu</h2>
15-
1614
{% assign pages_top_size = site.html_pages
1715
| where_exp:"item", "item.title != nil"
1816
| where_exp:"item", "item.parent == nil"

_posts/2025-08-16-accessible-error-messages-in-forms.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ date: 2025-08-16
1010
---
1111

1212
When you put care into preventing errors and clearly indicating when something goes wrong, users are much more likely to successfully submit a form.
13-
{: .fs-6 .fw-300 }
13+
{: .lead }
1414

1515
In this post, we’ll walk step-by-step through how to prevent errors, indicate them clearly, and offer help with error messages in forms for different types of users.
1616

@@ -36,15 +36,15 @@ Only ask for information you truly need in order to process the request. The few
3636

3737
Be clear about why you need sensitive personal information, such as an identification number, race, religion or medical data. Check your local legislation to see if you are allowed to request such private information in an open online form.
3838

39-
{: .info }
39+
{: .callout .info }
4040
In the Netherlands there are strict rules about [when to ask for a citizen service number](https://www.rijksoverheid.nl/onderwerpen/privacy-en-persoonsgegevens/vraag-en-antwoord/welke-organisaties-mogen-mijn-burgerservicenummer-bsn-gebruiken#:~:text=Alle%20overheidsorganisaties%20mogen%20gebruik%20maken%20van%20uw%20burgerservicenummer%20(BSN)). Canada has similar rules governing [how you can request Personally Identifying Information (PII)](https://www.priv.gc.ca/en/privacy-topics/privacy-laws-in-canada/the-personal-information-protection-and-electronic-documents-act-pipeda/p_principle/).
4141

4242

4343
## How will I ask for this information?
4444

4545
The input mechanism you use to ask for information has a profound impact on your users. Should you design new custom input fields or use recognizable, familiar patterns? Please don’t reinvent the web for something as essential as form fields. As Heydon Pickering explains in his talk [Get Your Priorities Straight](https://www.youtube.com/watch?v=ediHVy0869c): “Real people aren't looking to be delighted. People want to get the task done and get on with their lives".
4646

47-
{: .example }
47+
{: .callout .example }
4848
For example: users recognize radio buttons as circles and checkboxes as squares. They know from experience they can choose one option from the radio buttons and multiple options from the checkboxes. Also, the [keyboard interaction](https://webaim.org/techniques/keyboard/#testing) for radio buttons and checkboxes differs from each other.
4949

5050
Some field types are better avoided due to poor usability, such as multi-selects. Using date pickers? Check the experience for keyboard or screen reader users.
@@ -56,7 +56,7 @@ For a deep dive into asking for dates in forms, see the GOV.UK Design System pat
5656

5757
Don't force the user to enter information (like an email address) more than once, or expect them to remember entries entered on previous screens, like in a multistep form.
5858

59-
{: .info }
59+
{: .callout .info }
6060
This success criterion was added in [WCAG 2.2: 3.3.7 Redundant Entry](https://www.w3.org/WAI/WCAG22/Understanding/redundant-entry.html).
6161

6262
## What information can I provide in advance to help the user?
@@ -88,7 +88,7 @@ One option could be that when most fields are required, mark the *optional* ones
8888

8989
But, keep the way you indicate required/non-required fields consistent with all forms in your site.
9090

91-
{: .example }
91+
{: .callout .example }
9292
For example: "Please complete all fields. If a field is not required, it will be labeled "(Optional)".
9393

9494
Whatever you choose, be consistent within the form and across all forms on your website. Inform users above the form how field requirements are indicated.
@@ -101,7 +101,7 @@ Checking during typing can be confusing. Imagine typing an email address and see
101101

102102
That leaves two options: check after leaving a field, or after submission. These can be combined. For certain fields, like dates that must be in the future, immediate checking is helpful. But checking after submission is always necessary.
103103

104-
{: .warning }
104+
{: .callout .warning }
105105
HTML5 form validation is not accessible at this moment (in 2025). The W3C summarizes the options in [Validating Input ](https://www.w3.org/WAI/tutorials/forms/validation/). "If your web browser supports HTML5, it will not allow you to submit the form without entering text into the input field. Instead, it will display a message that is generated by the web browser itself". Write custom error messages and provide server side generated error messages. The W3C explains the options in [Validating Input ](https://www.w3.org/WAI/tutorials/forms/validation/).
106106

107107
## How do I indicate that an answer is incomplete or filled out incorrectly?
@@ -117,7 +117,7 @@ Use more than color alone to indicate errors. A user with visual impairments or
117117

118118
Messages like “This field is required” or “Invalid value” don’t offer much help. Write clear error messages that explain what’s missing or needs changing.
119119

120-
{: .example }
120+
{: .callout .example }
121121
“Enter your first name”
122122
“Your chosen password is too short. It must be at least 12 characters long.”
123123
“The expiration date must be in the future.”
@@ -130,7 +130,7 @@ You click "Send" and… nothing happens. Or you're redirected to the homepage. W
130130

131131
Give users clear confirmation that their form has been submitted and what will happen next. You can also include this messsage in a confirmation email.
132132

133-
{: .example }
133+
{: .callout .example }
134134
A confirmation text could be:
135135
Thank you for your registration for our workshop "Knitting socks". A confirmation email has been sent to [email protected] with the time and location of the workshop. If you haven't received an email? [Please contact us](#).
136136

@@ -142,7 +142,7 @@ Don't hide contact details. They shouldn't be buried at the bottom of the form,
142142

143143
Always offer multiple ways to get in touch on your contact page — not everyone can make a phone call.
144144

145-
{: .example }
145+
{: .callout .example }
146146
A help text could be:
147147
Do you need help filling out this form or do you have questions? [Please contact us](#).
148148

_posts/2025-08-27-offer-multiple-ways-to-contact-you.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ excerpt: "It’s better to offer multiple ways to get in touch, so people can ch
99
date: 2025-08-27
1010
---
1111
You want to reach out to customer service, and they say *“Send us a WhatsApp message.”* What if you don’t use WhatsApp, or cannot make a phone call, or use the chatbox?
12-
{: .fs-6 .fw-300 }
12+
{: .callout .lead }
1313
By offering multiple contact options, you make sure every customer has a way to connect.
14-
{: .fs-6 .fw-300 }
14+
{: .callout .lead }
1515

1616
## Don’t make getting in touch their problem
1717

@@ -109,7 +109,7 @@ Provide an address on your website where customers can send a letter.
109109

110110
It’s essential to provide multiple options for people to contact you. And don’t just ask for their preferences; respect them.
111111

112-
{: .example }
112+
{: .callout .example }
113113
You could ask for example:
114114
“Would you like us to call you back or send an email instead?”
115115

_sass/abstracts/_mixins.scss

Lines changed: 0 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -44,108 +44,3 @@
4444
padding-left: $gutter-spacing;
4545
}
4646
}
47-
48-
@mixin fs-1 {
49-
& {
50-
font-size: $font-size-1 !important;
51-
}
52-
53-
@include mq(sm) {
54-
font-size: $font-size-1-sm !important;
55-
}
56-
}
57-
58-
@mixin fs-2 {
59-
& {
60-
font-size: $font-size-2 !important;
61-
}
62-
63-
@include mq(sm) {
64-
font-size: $font-size-3 !important;
65-
}
66-
}
67-
68-
@mixin fs-3 {
69-
& {
70-
font-size: $font-size-3 !important;
71-
}
72-
73-
@include mq(sm) {
74-
font-size: $font-size-4 !important;
75-
}
76-
}
77-
78-
@mixin fs-4 {
79-
& {
80-
font-size: $font-size-4 !important;
81-
}
82-
83-
@include mq(sm) {
84-
font-size: $font-size-5 !important;
85-
}
86-
}
87-
88-
@mixin fs-5 {
89-
& {
90-
font-size: $font-size-5 !important;
91-
}
92-
93-
@include mq(sm) {
94-
font-size: $font-size-6 !important;
95-
}
96-
}
97-
98-
@mixin fs-6 {
99-
& {
100-
font-size: $font-size-6 !important;
101-
}
102-
103-
@include mq(sm) {
104-
font-size: $font-size-7 !important;
105-
line-height: $body-heading-line-height;
106-
}
107-
}
108-
109-
@mixin fs-7 {
110-
& {
111-
font-size: $font-size-7 !important;
112-
line-height: $body-heading-line-height;
113-
}
114-
115-
@include mq(sm) {
116-
font-size: $font-size-8 !important;
117-
}
118-
}
119-
120-
@mixin fs-8 {
121-
& {
122-
font-size: $font-size-8 !important;
123-
line-height: $body-heading-line-height;
124-
}
125-
126-
@include mq(sm) {
127-
font-size: $font-size-9 !important;
128-
}
129-
}
130-
131-
@mixin fs-9 {
132-
& {
133-
font-size: $font-size-9 !important;
134-
line-height: $body-heading-line-height;
135-
}
136-
137-
@include mq(sm) {
138-
font-size: $font-size-10 !important;
139-
}
140-
}
141-
142-
@mixin fs-10 {
143-
& {
144-
font-size: $font-size-10 !important;
145-
line-height: $body-heading-line-height;
146-
}
147-
148-
@include mq(sm) {
149-
font-size: $font-size-10-sm !important;
150-
}
151-
}

0 commit comments

Comments
 (0)