Skip to content

Avoid directional references (EK00052)

Stable labels like a button name work for every reader and survive layout changes. Replace directional references such as on the right in your documentation.

Naming an element — a button, a panel, or a menu — gives every reader a reference that holds no matter how the page renders, unlike a directional cue. EkLine flags references that point to a screen location, such as on the right or top-right (rule EK00052).

Why avoid directional references in documentation?

Section titled “Why avoid directional references in documentation?”

Directional references assume a reader sees the same layout you do. They are unhelpful to people using screen readers, and they break when a responsive design moves an element on a narrow screen. Naming the element instead — a button, a panel, or a menu — gives every reader a reference that holds no matter how the page renders.

EK00052 matches location-based references to content or UI, including “on the left”, “on the right”, “top-right”, and “bottom-left”.

  • Incorrect: Click the button on the right.
  • Correct: Click Save.
  • Incorrect: Open the panel in the top-right.
  • Correct: Open the Settings panel.

Replace the direction with a stable reference, such as the element’s label or name. Bold the label so readers can spot it on the screen.

They assume a reader sees the same layout you do. They are unhelpful to people using screen readers, and they break when a responsive design moves an element on a narrow screen.

What should you use instead of “on the right”?

Section titled “What should you use instead of “on the right”?”

Name the element and bold its label — Click Save rather than Click the button on the right. A label holds no matter how the page renders.

PropertyValue
Rule IDEK00052
CategoryInclusive language
Default severitySuggestion
Enabled by defaultYes

To keep a directional reference on one line, add an inline comment with a reason:

<!-- ekline-ignore-next-line EK00052 -- describing a chart axis -->
Time runs along the bottom of the chart, from left to right.

To disable the rule across your project, add it to the ignore list in your configuration file.

  • EK00003 — Avoid potentially condescending language
  • EK00057 — Write direct action statements