<!--
  GENERATED FILE - do not edit by hand.
  Source of truth: src/components/mds-price-table-features-row/usage/ in the magma monorepo.
-->

# mds-price-table-features-row - mistakes

> The API of this component: [`AGENTS.md`](AGENTS.md).

Common incorrect uses of `<mds-price-table-features-row>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/mistakes.md`](../../../../agents/mistakes.md) - they apply here too but are not repeated.

#### Do Not Use the Row Outside Its Parent

`<mds-price-table-features-row>` is a compound child that must be a direct slot child of [`<mds-price-table-features>`](../mds-price-table-features/AGENTS.md). Using it standalone or inside any other element breaks the layout: the row is a `display: table-row` box meant for the `<table>` that `<mds-price-table-features>` renders around its slot.

```html
<!-- INCORRECT -->
<div class="my-table">
  <mds-price-table-features-row>
    <mds-price-table-features-cell type="label">Funzione</mds-price-table-features-cell>
    <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
  </mds-price-table-features-row>
</div>

<!-- CORRECT -->
<mds-price-table>
  <mds-price-table-features label="Funzionalita'">
    <mds-price-table-features-row>
      <mds-price-table-features-cell type="label">Funzione</mds-price-table-features-cell>
      <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    </mds-price-table-features-row>
  </mds-price-table-features>
</mds-price-table>
```

#### Do Not Slot Arbitrary HTML Directly into the Row

The row's default slot expects only [`<mds-price-table-features-cell>`](../mds-price-table-features-cell/AGENTS.md) children. Raw HTML elements bypass the automatic equal-width distribution and break column alignment across rows.

```html
<!-- INCORRECT -->
<mds-price-table-features-row>
  <span>Funzione avanzata</span>
  <span>Si'</span>
  <span>No</span>
</mds-price-table-features-row>

<!-- CORRECT -->
<mds-price-table-features-row>
  <mds-price-table-features-cell type="label">Funzione avanzata</mds-price-table-features-cell>
  <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
  <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
</mds-price-table-features-row>
```

#### Do Not Omit the Label Cell

Every row should begin with a `type="label"` cell that names the feature. Omitting it leaves the row without a readable identifier, which makes the comparison table unusable for sighted users and screen readers alike.

```html
<!-- INCORRECT -->
<mds-price-table-features-row>
  <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
  <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
  <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
</mds-price-table-features-row>

<!-- CORRECT -->
<mds-price-table-features-row>
  <mds-price-table-features-cell type="label">Backup automatico</mds-price-table-features-cell>
  <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
  <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
  <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
</mds-price-table-features-row>
```

#### Do Not Customize via Inline Styles or Undocumented Parts

The only supported customization surface is the four `--mds-price-table-features-row-*` CSS custom properties. Applying inline `style` attributes or targeting shadow internals couples your code to the implementation and breaks on minor releases.

```css
/* INCORRECT */
mds-price-table-features-row {
  background-color: #f5f5f5;
}

mds-price-table-features-row >>> .internal-row-class {
  color: red;
}
```

```css
/* CORRECT */
mds-price-table-features-row {
  --mds-price-table-features-row-background: rgb(var(--magma-surface-muted));
  --mds-price-table-features-row-color: rgb(var(--magma-text-muted));
}
```

#### Do Not Mismatch Cell Count Across Rows

All rows inside a [`<mds-price-table-features>`](../mds-price-table-features/AGENTS.md) must have the same number of cells. The equal-width calculation runs per row in isolation, so mismatched counts produce misaligned columns.

```html
<!-- INCORRECT - row A has 4 cells, row B has 3 -->
<mds-price-table-features>
  <mds-price-table-features-row>
    <mds-price-table-features-cell type="label">Funzione A</mds-price-table-features-cell>
    <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
  </mds-price-table-features-row>
  <mds-price-table-features-row>
    <mds-price-table-features-cell type="label">Funzione B</mds-price-table-features-cell>
    <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
  </mds-price-table-features-row>
</mds-price-table-features>

<!-- CORRECT - every row has the same number of cells -->
<mds-price-table-features>
  <mds-price-table-features-row>
    <mds-price-table-features-cell type="label">Funzione A</mds-price-table-features-cell>
    <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
  </mds-price-table-features-row>
  <mds-price-table-features-row>
    <mds-price-table-features-cell type="label">Funzione B</mds-price-table-features-cell>
    <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    <mds-price-table-features-cell type="supported"></mds-price-table-features-cell>
    <mds-price-table-features-cell type="unsupported"></mds-price-table-features-cell>
  </mds-price-table-features-row>
</mds-price-table-features>
```
