> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# a11y-button-missing-name

> A native button has no accessible name.

## What it flags

A native button has no direct text and all its literal child elements are hidden. A button with an explicit name or a potentially naming component remains quiet.

A button also stays quiet when a directive or library attribute can render its text at runtime: PrimeNG `label`, ngx-translate `translate` or `[translate]` with a key, custom Vue directives such as `v-t`, Svelte actions, Thymeleaf `th:text` and `th:utext`, AngularJS `ng-bind`, Knockout `data-bind`, `data-i18n*` and `data-l10n-id`. The native `translate="yes"` and `translate="no"` supply no text.

The rule skips buttons hidden by inline styles, in statically inert subtrees or initially closed dialogs and popovers, and outside the first summary of collapsed details. Astro buttons are outside this check because the Astro parser does not establish whether they have direct text, including text supplied by `set:text`.

## How to review or fix

Give the button visible text or an accessible label that describes what it does.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "a11y-button-missing-name": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.