> ## 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-positive-tabindex

> A positive tabindex reorders keyboard focus away from the visual order.

## What it flags

A positive tabindex reorders keyboard focus away from the visual order.

## How to review or fix

Review whether the focus order can come from the markup order. Use `tabIndex={0}` when the element must stay keyboard-focusable and is not focusable on its own, such as a `div`. Remove the attribute when the element is naturally focusable, such as a `button`, or should leave the Tab order. Use -1 only for an element that script focuses and Tab should skip.

For eligible native form controls in static HTML, Loadwise can preview changing just the positive number to `0`. Verify the new keyboard order before applying the selected fix with `loadwise a11y --fix --only <id>`.

## Configuration

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

```json theme={null}
{
  "rules": { "a11y-positive-tabindex": "off" }
}
```


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