The Promo Code Field: Three Labelling Failures That Look Like Design Choices

It sits collapsed behind a link that says Add a discount code, it opens with no label a screen reader can find, and when the code fails, the explanation appears somewhere else on the page. The promo code field is the smallest form in the checkout and the one with the densest cluster of labelling failures.

Failure one: the toggle that is not a control

The collapsed promo field usually starts as a text link or a styled div. If it is not a real button, keyboard users cannot open it at all, and screen reader users get no announcement that a region expanded. WCAG 2.2 Success Criterion 4.1.2, Name Role Value, is the one being failed: the control's state, expanded or collapsed, must be programmatically determinable, which in practice means a button with aria-expanded. Baymard's checkout research has long flagged the collapsed discount field as a usability friction point for everyone; for assistive technology users it can be a locked door.

Failure two follows immediately. The opened field often carries placeholder text as its only label, Discount code written inside the box. Placeholders vanish on input, are frequently too low contrast to read, and are announced inconsistently. Success Criterion 3.3.2, Labels or Instructions, expects a persistent visible label. The placeholder is not one.

Failure three: the error that lands elsewhere

Submit a bad code and the message appears at the top of the order summary, or under the payment section, anywhere but next to the field. Sighted users hunt for it; screen reader users may never encounter it, because nothing connects the message to the input. The fix is mechanical: aria-describedby pointing from the input to the error text, aria-invalid set on the field, and the message written into a live region so it is announced at the moment it appears.

There is also a quieter decision to make: say what went wrong in words a shopper can act on. Code not recognised is a fact. This code expired on 30 September is a next step. Vague errors push shoppers to retry the same code, and each retry is another unannounced failure if the plumbing is wrong. Our piece on free Shipping Threshold Messages covers the announcement mechanics in full.

A ten minute audit for your own cart

Open your cart with only a keyboard. Can you reach and open the promo toggle, and does it announce as a button with a state? Tab into the field: is there a label that survives typing? Submit an invalid code with a screen reader running and write down what you hear. Three answers, ten minutes, and you know whether your smallest checkout form is compliant or decorative.

None of this requires a redesign. A button element, a real label, two ARIA attributes, and an error message placed where the error happened. The promo field is where compliance work is cheapest in the entire cart, which is exactly why its failures are so hard to excuse in an audit. cart Quantity Steppers shows the same pattern applied to shipping messages.

Frequently asked questions

Is placeholder text enough as a label for a promo code field?

No. Placeholders disappear once the shopper types, often fail contrast requirements, and are announced inconsistently by screen readers. WCAG expects a persistent visible label associated with the input. Keep the placeholder as a hint if you like, never as the label.

What should happen when a promo code is invalid?

The field should be marked invalid programmatically, the error text should sit next to the field and be connected to it with aria-describedby, and the message should be announced through a live region. The wording should say what happened, such as expired or not recognised, so the shopper knows what to do next.

Why must the discount toggle be a real button?

Because keyboard and screen reader users need a control with a name, a role, and a state. A styled link or div gives no expanded or collapsed state, which fails the Name Role Value criterion. A button with aria-expanded provides all three.

Does a collapsed promo field hurt conversion too?

Checkout usability research, including Baymard's, has long treated the hidden discount field as a double edged pattern: it reduces distraction but adds friction and sends some shoppers off site hunting for codes. The accessibility failures compound that friction for assistive technology users.