From 784315f2ea5141b4320426c58640066099ed9d51 Mon Sep 17 00:00:00 2001 From: JoshHeaps Date: Tue, 1 Sep 2026 12:16:00 -0600 Subject: [PATCH] Put one dealer button on the table A poker table has one dealer button. This one drew nine. Every seat carried a puck: the real one in gold, and eight ghosts at 0.32 opacity that existed to be pressed. Measured on a nine-seat table -- eight pale discs, all eight showing the letter D, one of them the button. Finding it meant comparing nine identical shapes for the one that's gold, when it should be the only thing of its kind on the felt. The ghosts also sat on their neighbours. Every remaining "something important is covered" offender on a crowded table was a live seat covered by the seat-next-door's ghost puck: 844x390, 915x412, 360x640 and 640x360 each reported one, and they were all the same thing. And a screen reader heard nine buttons named "D". So a seat without the button doesn't draw one. Hovering a seat fades its slot in -- a preview of where the button would go, one click as before -- and on touch, where there is no hover, "Give the button" has been in the seat's long-press menu all along. Keyboard reaches it by focus, where the slot appears too. pointer-events matters as much as the opacity: an invisible puck that still took taps would be worse than a visible one. visible pucks 9 -> 1 at every size layout offenders 915x412 1->0, 360x640 1->0, 844x390 3->2, 640x360 3->2 clean viewports 4 of 9 -> 6 of 9 labels nine "D" -> "Ann has the dealer button" and "Give the dealer button to Ben" The audit now checks it, because this is a rule about the table rather than about CSS: one puck drawn, and no two announcing themselves the same way. Verified against the old behaviour put back -- it reports 9 and 9. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb --- JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml | 2 +- JoshHeaps.Net/wwwroot/css/casino/holdem.css | 33 ++++++++++++++++--- .../wwwroot/js/casino/holdem/render.js | 12 ++++++- tests/holdem/uiAudit.js | 29 ++++++++++++++++ 4 files changed, 69 insertions(+), 7 deletions(-) diff --git a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml index 36c00b3..7973bb2 100644 --- a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml +++ b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml @@ -163,7 +163,7 @@