Give the search box its focus ring back, and stop the empty state floating #206
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "search-focus-and-empty-state"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two regressions from the NLDD work, both reported from the running app.
The search box had a halo but no ring
SearchRowshows focus on the.fieldwrapper and deliberately setsoutline: noneon the inner input. That beats the global:focus-visiblerule on source order at equal specificity - but only for the outline. Itsbox-shadowsurvived, and--semantics-focus-ring-box-shadowis a 6px halo in the page background colour.So the focused search box drew background onto background with no ring: the same failure #198 fixed globally, reintroduced locally by a legitimate override.
The ring now sits on
.field, which is what a user perceives as the search box, and the input clears both halves of the global rule.Eight other places suppress the outline for the same good reason (the editors, the link bar, the emoji picker, the preview dialogs, the card modal). All of them had the same stray halo. They now clear the shadow too, and a sweep over
srcfinds no outline suppression left without it.The empty state floated in the middle of the page
nldd-inline-dialogsetsflex-grow: 1on its host and centres its content in whatever height it gets - that is its design ("fills the container"). In the reading list its wrapper is a page-tall flex column, so it stretched to 912px around 107px of content and parked the message halfway down.flex-grow: 0holds it to its content height: 203px, sitting under the header. Full width is preserved.Worth recording:
align-self: startdoes not work here. The column's cross axis is horizontal, so it only narrowed the box while leaving the height untouched.The Focus empty state was already correct - its wrapper is a row, so
flex-growlands on the width there. Verified rather than assumed.Verified
Measured in a running preview before and after;
vue-tscclean, 541 tests green, build green, eslint 0 errors.