LEDGERMACHINE

LM-EFFECT-002

Audit inconsistent z-index values

A rare z-index is separated from the project’s other observed levels by a large gap.

What Ledgermachine reports

A layer value sits far from the others

Decision, not automatic repair

Name the overlay role and align it with the stacking scale; third-party widgets may need an explicit exception.

Source example

What this finding can look like

The exact candidate comes from the project’s own tokens and repeated values. This example shows the shape of the issue, not a universal replacement.

Flagged source
.header { z-index: 10; }
.tooltip { z-index: 9999; }
One possible resolution
:root { --layer-header: 10; --layer-tooltip: 30; }
.tooltip { z-index: var(--layer-tooltip); }

Resolution workflow

Fix the source without erasing intent

  1. Inspect

    Review every reported occurrence and the established candidates Ledgermachine found in the same project.

  2. Decide

    Name the overlay role and align it with the stacking scale; third-party widgets may need an explicit exception.

  3. Verify

    Make the change in your editor or coding agent, then rescan. Ledgermachine stays read-only and records whether the finding cleared.

Run it on your source

See the evidence behind this rule.

Open a folder locally, inspect the exact occurrences, and decide whether to repair or preserve the difference.

Open Ledgermachine