Check payment portal buttons against 24 by 24 CSS pixels, then aim for 44 by 44 for important controls.
Key takeaways
- List clickable controls at desktop and phone widths.
- Measure the clickable area, including padding.
- Check spacing and equivalent controls before rejecting an undersized target.
- Record exceptions and measure each fix again.
A customer payment portal is the page where a customer updates a card, reviews an invoice, or cancels a plan. A button that is hard to hit on a phone can make a payment update harder to finish. It can also fail an accessibility review.
This post works as a decision path. Start with the first check, read the result, and follow the branch that matches what you see. The two sizes discussed here come from the Web Content Accessibility Guidelines (WCAG). The first is 24 by 24 CSS pixels, the minimum size in one success criterion. The second is 44 by 44 CSS pixels, the stricter size in another. Most of the work is deciding which size applies to which control, and whether a smaller control has an allowed reason to be smaller.
You will need a desktop browser with developer tools, a way to measure elements in CSS pixels, the portal open at the screen widths your customers use, and a notes file. Work through one control at a time. Do not skip the recording step at the end, because the notes are what the launch or audit team will ask to see. For a broader billing review, also check portal rules before sharing.
Step 1: List every control a customer can tap or click
Start with a list, not with measurements. A portal page usually has more interactive elements than the designers remember. Include:
- The main action buttons, such as "Update payment method," "Pay now," or "Cancel plan."
- Text links inside sentences, such as a link to terms in a billing notice.
- Icon-only buttons, such as a close icon on a dialog, a copy icon next to an invoice number, or a help icon beside a label.
- Controls repeated in lists, such as a row of invoice actions or a menu on each saved card.
- Controls that appear only after a click, such as a confirmation dialog or an error message with a retry link.
Give each control a short name and note where it sits on the page. You will check the same control at more than one screen width, so a clear name keeps the notes readable. Mark the controls that finish a payment or change a plan as primary. Those get the closest look.
Check the page at a desktop width and at a phone width. A layout often rearranges itself on a small screen, so a control that looks comfortable on a desktop can end up squeezed against its neighbors on a phone. Keep both sets of measurements in your notes.
Include the button on your own site that starts a portal session, too. Stripe's subscription guide describes this flow as one where you "add a customer portal session to your site, including a button and redirect." That button sits on the page you review, so measure it like any other control. Stripe's guide is a useful reference for how that flow is set up.
Step 2: Measure each control against 24 by 24 CSS pixels
The first size is 24 by 24 CSS pixels. The Target Size (Minimum) criterion on the W3C site uses this as its minimum. A target that is less than 24 by 24 CSS pixels is undersized, and an undersized target needs either enough space around it or one of the exceptions. Measure the clickable area, which is the part that responds to a tap or click, and not only the visible icon or word. If the developer tools show padding that makes the clickable area bigger, measure that area, and write down that you did.
Then sort the control into one of three branches:
- 44 by 44 CSS pixels or larger. The control clears both sizes. Record the measurement and move to the next control.
- At least 24 by 24 but smaller than 44 by 44. The control is not undersized, so it meets the 24-pixel minimum. It is still below the stricter size. Flag it as an improvement, and raise it with more urgency if it is a primary control.
- Under 24 by 24 in either direction. Go to Step 3.
The stricter size is worth prioritizing for the controls that matter most. The W3C Target Size (Minimum) page says, "For important links/controls, consider aiming for the stricter 2.5.5 Target Size (Enhanced)." The W3C Target Size page is where the 44 by 44 CSS pixel requirement is discussed. For a portal, that means the buttons that pay, change a plan, remove a card, or cancel should be the first ones to reach 44. Aim for 24 on each control unless spacing or an exception allows a smaller target, and prioritize 44 for primary ones.
Step 3: Check the spacing around each undersized control
If a control is under 24 by 24 CSS pixels, the first thing to test is spacing. The W3C Target Size (Minimum) page describes the spacing rule this way: undersized targets are positioned so that if a 24 CSS pixel diameter circle is centered on the bounding box of each, the circles do not intersect another target or the circle for another undersized target. For a square or rectangular target, the circle is centered on the target itself.
In practice, you do this with a ruler overlay or a sketch in your notes. Picture a circle 24 CSS pixels across, centered on the small control. Then check the nearest other controls. If the circle reaches into another control's clickable area, or into the circle of another undersized control, the spacing fails. The rule is about the circles, not about how the icons look, so an icon that appears to have room may still fail once you draw the circle.
Dense rows are where this check usually fails. A copy icon, an edit icon, and a delete icon packed tightly beside each invoice line are a common example. Check the row as a set, not as three separate controls, because the neighbors are what decide the result.
Branches:
- Spacing passes. The control meets the minimum. Record the measurement, the spacing result, and the nearest neighbors you checked. The stricter size remains a goal for primary controls.
- Spacing fails. Go to Step 4.
Step 4: Ask whether an equivalent control already does the job
When spacing fails, look for an equivalent. The W3C Target Size (Minimum) page says that a target without a 24 by 24 CSS pixel size can be excepted under the "Equivalent" exception when another control can achieve the same underlying function and meets the criterion. The question is function, not appearance. Two controls can look different and still do the same job. Two controls can look alike and do different jobs.
Here is an example. A small "x" icon closes a payment dialog, and a full-size "Close" button sits in the same dialog and does the same thing. If the full-size button meets the criterion, the icon can be treated as equivalent. A "Cancel plan" link in the page footer does not stand in for a small "Remove card" icon, because the two do different things.
Branches:
- An equivalent exists and meets the criterion. Record both controls and the reason they do the same job. Move on.
- No equivalent exists. Go to Step 5.
This is a judgment call, so write down the reasoning and have the person who owns the page confirm it. An equivalent accepted without a written reason has not really been checked.
Step 5: Check the named exceptions
The last check covers the exceptions that the guidelines name. Two of them appear on the W3C Target Size page and matter for portal text:
- A footnote link at the end of a sentence does not need to meet the 44 by 44 CSS pixels requirements.
- A help icon within or at the end of a sentence does not need to meet the 44 by 44 CSS pixels requirements.
Both exceptions are written against the 44-pixel size. Do not read them as permission to go under 24 pixels. Do not stretch them to cover a help icon in a toolbar, or a footnote mark that sits beside a button rather than at the end of a sentence.
Check placement against the page text. On a portal, a help icon after a sentence in a note about a renewal date may fit. A help icon next to a form label usually does not sit inside a sentence, so it does not fit. Write down the sentence and where the icon sits, so the reviewer can see the reason.
The third exception is about presentation. The W3C Target Size page says, "A particular presentation of the target is essential to the information being conveyed." This applies when changing the size would change what the customer sees or understands. A link's placement in a billing table alone does not establish that its presentation is essential. A button that could be bigger without changing its meaning does not. Ask the question directly: if the target grew, what would the customer lose? If the answer is nothing, the exception does not hold.
The W3C Target Size (Minimum) page covers its own exceptions in more detail. Read that page before you rely on any exception that does not appear in this post.
Branches:
- Essential presentation clearly applies to the undersized control. Record its name and the reason. Move on.
- No exception clearly applies. The control fails. Record it for a fix, as described in the decision list below.
Step 6: Check alignment and skew before you record a size
Measuring a tilted control needs one more check. The W3C Target Size (Minimum) page says, "The 24 by 24px square has to be aligned with the page, although the target itself could be skewed." A button rotated or skewed with CSS can still be a valid target. The square you measure against, however, must line up with the page edges, not with the button's tilted edges.
Portal designs sometimes tilt a badge, a ribbon, or a "Most popular" plan button. When you find one, draw your measuring square along the page, check the size and spacing that way, and note in the record that the control is skewed. Running this check every time keeps your measurements consistent across a page that mixes angles.
Decide which way to go
Use this order for each control. Stop at the first result that settles it, record the result, and move to the next control. Apply the alignment check from Step 6 at every measuring step.
- Is the control at least 44 by 44 CSS pixels? If yes, it passes. Record it.
- Is the control at least 24 by 24 CSS pixels? If yes, it meets the minimum. If it is a primary control, add a note to aim for 44. Record it.
- The control is under 24 by 24 CSS pixels. Does spacing pass (Step 3)? If yes, it meets the minimum. Record the spacing result.
- Spacing fails. Is there an equivalent control that does the same job and meets the criterion (Step 4)? If yes, record the pair and the reason.
- No equivalent. Does the essential-presentation exception apply (Step 5)? If yes, record the exception and why; footnote and help-icon exceptions cannot clear this undersized control.
- None of the above applies. The control fails. Record it as a fix, with the measured size and the neighbor it crowds.
Illustrative example: checking an invoice page
Suppose you are reviewing an invoice page with three kinds of control: a large "Pay now" button, a row of small icons beside each unpaid invoice, and a help icon in a billing notice.
The payment button clears both sizes, while the help icon meets the minimum. Its sentence placement may allow the exception to the stricter size. The undersized icon row fails spacing and needs a fix, assuming no equivalent control meets the criterion and no essential-presentation exception applies. A full-size "Remove" button in the invoice details view could change the delete icon's result if it meets the criterion and does the same job. Record each control separately.
Fixing the controls that fail
A failing control has one of two problems. It is too small, or it sits too close to a neighbor. The fixes are usually simple, but a fix only counts once you measure it again.
For a control that is too small, enlarge the clickable area before you enlarge the visible icon. Padding around the icon can bring the clickable area up to the size you need without changing how the page looks much. For a control that is too close to a neighbor, add space between the two, or move one of them into a menu. Secondary actions such as "Download" or "Copy" are common choices for a menu, while the main action stays visible.
Check the fix at the same screen widths where you found the problem. A crowded row often gets worse at phone widths, so test there too. Once the fix is in, measure it again. A fix you have not measured is still a guess. For another visual check, review form control contrast.
What to record for each control
Record enough that another reviewer can repeat your check without asking you. For each control, note:
- The page name and the screen width you used.
- The control's name and its measured size in CSS pixels.
- The spacing result, with the nearest neighbors you checked.
- The path you took through the decision list, such as "Step 3, spacing passes."
- Any equivalent or exception you relied on, and the reason for it.
- Who confirmed a judgment call, if anyone did.
- The date of the check.
Keep the notes in one place. A shared sheet works well if everyone uses the same columns. The launch or audit team is the audience, so write each note so it stands on its own without relying on your memory of the page.
Start with one payment button today
Measure the clickable area of your primary payment button at phone width today and record its size.
If you find controls you cannot confirm, bring them to the design team with your measurements and the reason each one is unclear. A question with a measured size attached is much faster to answer than a general concern about the page.
Questions about button sizes
What should I measure?
Measure the area that responds to a tap or click, including clickable padding.
What belongs in the review notes?
Include the control's size, screen width, result, and reasoning so another reviewer can repeat the check.
Sources
Limits of this post
This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.