The PR adds a loading state with a CSS border spinner — a div with border-radius: 50% and a spinning border — or an inline SVG circle with a CSS animation. The repo already has a Spinner (or LoadingIndicator) with sizes, an accessible name, and a reduced-motion path. Nearby query and button loading states use it. The homemade spinner has no accessible name, ignores prefers-reduced-motion, and does not match the existing size scale.
I've started treating a new CSS spinner as a second loading language, not as a lighter wait state. Drawing a circle is the easy part. A labeled, consistent indicator is why the component is there.
Why the homemade spinner shows up
A tutorial "CSS loader" example is a bordered circle and a spin keyframe. The model can write that without finding components/Spinner. Your component may be named Loader, ProgressCircle, or live on the Button loading prop, which is easy to miss if the prompt only says "show a spinner."
You also skip the difference between a page-level wait and a button-level wait, the required label, and the rule about not adding a new animation library for one loader.
A simple Spinner policy
- New wait indicators use the existing Spinner or the Button loading state
- Do not add a CSS border spinner in a feature file
- Do not ship a spinner with no accessible name
- A new size or tone is a component change, with a story
If the wait has a known percentage, that is the existing progress component, not a looping spinner. If the existing Button already supports loading, use that instead of placing a raw Spinner beside the label.
What to put in the prompt
Use the existing Spinner, or the Button loading state, for this wait.
Do not add a CSS border spinner or a new loader SVG in this file.
Keep the accessible name, sizes, and reduced-motion path on the shared component.
If the wait has a known percentage, use the existing progress component instead.
Paste one existing Spinner or loading-button usage. In review, search the diff for a new spin keyframe, a border-radius: 50% loader, and a spinner with no role="status" or visible label.
Reject / send back
Reject
- A feature-level CSS or SVG spinner that reimplements the existing Spinner
- A loader with no accessible name
- A spinner that ignores the existing reduced-motion path
- A second loading library added for one query
Accept
- A wait state that uses the existing Spinner or Button loading prop
- A component PR that adds a documented size or tone and a story
- A determinate wait that stays on the existing progress component
Top comments (0)