Short buttons, clear names: Dynamic Aria Labels in Greyd

Six cards, six “Book a tour” buttons, and no way to tell them apart without seeing the layout. How Greyd’s Dynamic Aria Labels and Dynamic Tags keep button names and prices clear for screen readers, voice control, and AI agents.

Portrait of Anne-Mieke Bovelett, a woman wearing long blonde dreads in a ponytail, big rounded silver rimmed glasses, a black shirt, with a subtle smirk on her face.

Anne-Mieke Bovelett /

03.12.2026

Picture a fitness franchise with a location finder. Every branch card has a Book a tour button. If you can see the page, you know which gym you’re booking, because the button sits right under its address. Now open the links list in a screen reader, which is a common way to scan a page quickly. You get “Book a tour” six times in a row. Which one takes you to the gym around the corner?

The obvious fix is longer visible text, and sometimes that’s the right call. But designs often want short button labels, and a grid where every card says “Book a tour at Riverside” gets heavy fast. Greyd’s Dynamic Aria Labels give you a second option. The button keeps its short visible text, and its accessible name carries the details the layout was providing.

One template, many buttons

In Greyd.Suite, a branch card like this is usually a Dynamic Template that repeats for every branch. Each branch is an entry, for example a post in a “Locations” post type, and a Query Loop shows one card per entry. In the template, you mark the button’s aria label as dynamic. Then, where the template is placed, you write the label itself. Nothing is copied over from the button, because the aria label replaces the button’s accessible name completely. So you type “Book a tour” yourself and add a Dynamic Tag for the branch name after it. Every card then fills in its own location.

That’s the bit I love. When a new branch opens next month, someone adds the location, and its button gets the right name without anyone touching the label. The person entering the branch details enters them once, where they belong, and the accessible name comes along with them. If the label is ever left empty, nothing breaks. The button falls back to its visible text.

The same thing happens on an enterprise product site. Three similar machines, three Request a quote buttons. Put the model in the accessible name, and a customer (or the AI agent they sent) can tell which machine they’re asking about, even when they come across the link on its own.

The power of Greyd’s Dynamic Features for the accessibility of your websites

Buttons in itself are a pretty easy case. It’s just one element with one name. The real strength of Dynamic Templates and Dynamic Elements in Greyd.Suite shows when layouts get more complex. A pricing card, a product teaser, or a location block is a stack of small pieces that only make sense together. Designers split them apart to get the look right, and every split is a place where what people see and what the code says can drift apart. On a single page, someone can catch that by hand. Across hundreds of pages that editors keep updating, nobody does. If the tool gives you no place to keep those two layers connected, compliance turns into something you re-check after every change, when it could be something the template holds for you.

I covered the difference between aria-label, aria-labelledby, aria-describedby, and aria-hidden in my earlier article on ARIA attributes. Dynamic Aria Labels work on Greyd’s supported Button blocks inside Dynamic Templates. The pricing example below combines Greyd’s Aria Attributes with Dynamic Tags, and it shows what keeping those layers connected looks like on a real page.

What happens when the price itself is hard to read?

A gym membership card says $49 $39 / month. The designer wants the dollar sign raised a little, the number much larger, and “/ month” tucked in beside it. So the developer builds the price from separate elements.

A gym membership card showing a crossed-out $49, a large $39 with a raised dollar sign, and “/ month”. Next to it, what a screen reader may announce: “dollar, 49, dollar, 39, slash month”, followed by the question “Which price do I pay?”. Below that, the same card with one visually hidden sentence: “$39 per month. Regular price $49 per month.

Read the pieces in order.

[$] [49] [$] [39] [/ month]

A screen reader may announce the dollar sign and the number separately, and many screen readers don’t announce strikethrough by default. So which price will you pay?

An AI agent runs into the same ambiguity. Ask one to find a membership under $40 a month. Some browser agents work through a page using a text snapshot of its accessibility information, because that’s cheaper and faster than sending a fresh screenshot to a model after every click. If all the snapshot holds is two amounts and “per month,” the agent has to guess what the line through $49 meant.

If the design has room, put “Regular price” and “Offer price” on the card. Everyone benefits from that. If the design has to stay as it is, hide the visual price pieces from assistive technology by giving their group aria-hidden="true", which you can set through Greyd’s Aria Attributes. Next to that group, add a paragraph that’s visually hidden with a class such as .sr-only and says the price in one sentence.

$39 per month. Regular price $49 per month.

Hide only the price pieces. The plan name, the billing selector, and the signup button stay outside that group. Otherwise you’ve hidden exactly the parts people need to act.

Now roll that offer out across a franchise network

Headquarters sets a Black Friday price of $39 a month for participating locations. The new price shows up on the cards. Who remembers to update the sentence a screen reader user will hear?

Nobody, if that sentence is typed by hand. That’s how the visual price and the spoken price drift apart, one campaign at a time. So I’d store the prices in custom fields and let Greyd’s Dynamic Tags fill both the visible card and the hidden sentence. The editor changes the price once, and both versions follow. A display condition tied to the campaign shows the offer wording while it runs and removes it from both places when it ends.

Annual billing adds one more layer. If the card advertises $30 / month and the customer pays $360 up front, put “$360 billed annually” where everyone can see it. When a visitor switches from monthly to annual, the card in front of them changes. So each billing version needs its own hidden sentence inside its own container, and whichever version is showing carries the right price with it.

Those are two different kinds of change. The editor’s price update happens in the content, and the template carries it to every card. The visitor’s billing switch happens in the browser, and the page structure has to carry it. When both are built in from the start, the next campaign is a content update instead of a fresh round of accessibility fixes.

Back to the buttons

One last thing: every control needs a programmatically determinable name, a name that assistive technology can read from the code. And when a control has visible text, its accessible name has to contain that text. That’s why you type “Book a tour” at the start of the dynamic aria label and add the location after it. It also means that when someone changes the visible button text later, the label has to change with it. Someone using voice control says the words they see, and the button responds. A screen reader user hears “Book a tour Riverside” and knows where the link goes. One name serves both, because it builds on what’s already on the screen.

Now do the test that takes two minutes. Open your pricing page. Read the prices aloud in order, without explaining what the size, position, or strikethrough means. Read each button on its own. Could someone listening tell what they’ll be charged and which button to choose?

If something fails that test, fix it in the template. A label or price sentence corrected by hand on one page stays correct on that page until the next campaign. Corrected in the template, and fed by the same data as the design, it stays correct for every branch you open and every offer you run after that.

Portrait of Anne-Mieke Bovelett, a woman wearing long blonde dreads in a ponytail, big rounded silver rimmed glasses, a black shirt, with a subtle smirk on her face.

By Anne-Mieke Bovelett

Anne-Mieke Bovelett is an accessibility strategist, WordPress contributor, and public speaker based in Germany. She argues that inaccessible websites don’t just exclude users, they lose money, and she builds the business case to prove it. Anne-Mieke is a Product Ambassador for Greyd.Suite.

Recent in Learn

A man in a vest and t-shirt stands left of a large screen displaying: "FLOOD THE ZONE WITH SHIT. 14,608 NEW PLUGINS IN 2026. MORE THAN 2024 + 2025 COMBINED. WHAT COULD POSSIBLY GO WRONG IN A SATURATED MARKET?". The screen also shows an increasing blue bar chart and a zombie crawling from its base.

It’s the Economy, Stupid: Why Most WordPress Product Businesses Are Running Out of Road

Read more
A woman with curly hair points with a pen while conversing with a bearded man at a desk with markers and a tablet.

Is Routine Website Work Keeping Your Agency from Bigger Projects?

Read more
Designers collaborating on a website project in a creative workspace

When a designer has to wait for a developer to test an idea

Read more
Team developing a new brand identity using color palettes and design guidelines

A rebrand should not take a year

Read more
Business professional managing a network of connected locations

When Every Location Runs Its Own Website, the Network Can’t Run a Campaign

Read more