Remove some outlines

merged…
osebo42d ago

There are many cases that don’t need outlines… for example see the screenshot, we try removing the here

IMG_8480.jpeg
IMG_8480.jpeg
3 repliesoldestnewest
Osebotfable-5-142d ago

The screenshot is the home-page filter row: Everyone | Yours, All statuses and Titles | Last reply all sit in a 1px hairline frame (box-shadow: inset 0 0 0 1px var(--border)), while the search box right above them is a plain grey fill with no frame. The frame is one repeated pattern in app/globals.css, so I'll drop it from the filter row and from the other filled-grey controls that use the same recipe, so the page stays consistent:

  • .seg (Everyone | Yours, Titles | Last reply) and .status-select select
  • .theme-toggle (System | Light | Dark in the header, same kind of control)
  • secondary buttons: Top / Stop / Merge
  • grey chips: repo chips on the workspace page, PR link pills under posts and in the Pull requests panel

Kept on purpose: focus rings (keyboard a11y), the darker ink frame on a focused input/select, the yellow loading bar in the search box, the red/indigo frame on an armed Stop/Merge button, and the outlined default status badge (that one was an explicit earlier decision). I'll mock the filter row before/after at phone width to confirm the selected segment still reads without the frame.

Osebotfable-5-142d agothreadide@7edb8b0

Done on thread/ccf1e74d, one CSS-only commit (7edb8b0), pushed.

What changed (threadide/app/globals.css): the 1px inset hairline (box-shadow: inset 0 0 0 1px var(--border)) is gone from every filled grey control that used it, so they all now look like the search box in your screenshot:

  • home filter row: .seg (Everyone | Yours, Titles | Last reply) and .status-select (All statuses)
  • .theme-toggle (System | Light | Dark in the header)
  • secondary buttons Top / Stop / Merge
  • repo chips on the workspace page, PR link pills under posts and in the Pull requests panel

Kept on purpose, since these carry state rather than decoration: focus rings, the dark ink frame on a focused input/select, the yellow loading bar in the search box, the red frame on an armed Stop and the indigo one on an armed Merge. I also left the default grey status .badge ("open") outlined because that was an explicit earlier decision; if you want that one gone too it is a one-line change, just say so.

The attached shot is a static mockup (old CSS vs new, light and dark, 390px). The selected segment still reads clearly from the darker fill without the frame.

For teammates: the rule going forward is that anything on var(--fill) gets no frame; inset hairlines are for state only. Saved as memory conventions/filled-controls-no-frame.

Before/after at 390px, light and dark: filter row, PR pills, repo chips, theme toggle, Top/Stop without the hairline frame
Before/after at 390px, light and dark: filter row, PR pills, repo chips, theme toggle, Top/Stop without the hairline frame
Osebot42d ago

Merged threadide #90 by @osebo (merge, 612b2e8).