---
id: accessibility/configuration/significantattributes
title: Significant Attributes | Cypress Accessibility
description: >-
  The `significantAttributes` configuration property allows users to specify
  custom attributes that should be considered "significant" for the purpose of
  identification and grouping.
section: accessibility
source_path: docs/accessibility/configuration/significantattributes.mdx
version: 6a908a532b1fca4ed18538a4c1c5a9bc7f24f403
updated_at: '2026-05-01T19:25:18.656Z'
---
# significantAttributes

The `significantAttributes` property allows you to specify which attributes should be considered significant when identifying elements in Cypress Accessibility.

## Why use significant attributes?

Cypress uses a [default set of attributes](/llm/markdown/accessibility/core-concepts/element-identification.md) (such as common test ID patterns), in a priority order, as the preferred way to identify elements in reports.

The values of these attributes are used as element identifiers, which helps us recognize the same element in multiple contexts and deduplicate the findings. This helps when reviewing run reports, or comparing reports in Branch Review.

You may have attributes already in place in your application that would help with element organization, such as `data-component-name`. If you would like Cypress to use and prioritize these attributes, or you want to change the default priority order, you can define your own list of significant attributes.

## Scope

**Note:** setting `significantAttributes` impacts both Cypress Accessibility and UI Coverage reports if set at the root of the configuration. Nesting this property under an `accessibility` or `uiCoverage` key is supported, if you need to split them up.

## Syntax

`significantAttributes` is an array of strings, with each string being the name of a HTML attribute.

```
{  "significantAttributes": [    string  ]}
```

## Examples

### Marking specific attributes as significant

#### Config

```
{  "significantAttributes": ["class", "id", "data-context"]}
```

#### HTML

```
<body>  <button class="primary" id="submit" data-testid="submit" data-context="user-signup">    Submit  </button></body>
```

#### Significant attributes tracked

```
class="primary", id="submit", data-context="user-signup"
```
