fix: restore Related Stories resize focus
This commit is contained in:
5 files changed
+24
-37
No files matched your search
@@ -272,7 +272,7 @@ Create real DOM fixtures for two block instances. Inject matchMedia and element
|
||||
- start/end buttons receive correct native disabled states after scroll and resize;
|
||||
- reduced motion selects instant/auto behavior and default permits smooth behavior;
|
||||
- missing buttons, track, cards, matchMedia, or scroll APIs leave controls hidden and do not throw;
|
||||
- 900→901 while either button owns focus moves focus to the visible heading before hiding;
|
||||
- 900→901 while either button owns focus moves focus to the first related-story link before hiding;
|
||||
- unrelated focus stays unchanged;
|
||||
- rail semantics and controls restore at 901→900;
|
||||
- reinitialization does not duplicate listeners; cleanup removes every listener;
|
||||
@@ -384,7 +384,7 @@ On a seeded single-post route containing the default block, add tests for:
|
||||
- button navigation moves exactly one card and updates disabled edges;
|
||||
- native horizontal wheel/touch-compatible scrolling remains possible;
|
||||
- Tab reaches the rail and buttons in DOM order and exits without wrapping/trapping;
|
||||
- resizing at the 900/901 boundary repairs button focus to the heading;
|
||||
- resizing at the 900/901 boundary repairs button focus to the first related-story link, which remains naturally focusable and visible in every engine's grid;
|
||||
- reduced motion produces no smooth programmatic scroll but preserves geometry;
|
||||
- JavaScript-disabled adaptive/carousel variants keep controls hidden and every card/link reachable through the focus order;
|
||||
- controller failure simulated before initialization leaves native rail and links usable;
|
||||
|
||||
Reference in new issue
Block a user