Skip to content

Commit e0ab081

Browse files
committed
State the offer marker's value as the copy's removal rule
The paragraphs over the standalone copy's control removal still described the old chrome: a tab stop wearing an injected role, told apart by DECISION_CONTROL. `offer` builds a native <button> and writes no tabindex, and DECISION_CONTROL's second alternative now matches an empty-marker box the loop deliberately spares, so the section stated two contradictory rules for one loop. Say what `offer` and `selectableOffer` write and when, and drop the citation whose set diverged.
1 parent 8b869c9 commit e0ab081

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

‎skills/leaf/scripts/leaf/render-checks/standalone.js‎

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ export function bake() {
141141
document
142142
.querySelectorAll('[hidden="until-found"]')
143143
.forEach((el) => el.removeAttribute("hidden"));
144-
// A press a widget injected is a tab stop wearing an interactive role (offer), and
145-
// both are promises a handler kept. The handlers left with the scripts above, so a
146-
// copy that carried them offered a press nothing can take — and the first Tab into an
147-
// exported decision page landed on one. It was a `choose` group's pick mark, which
144+
// A press a widget injected is the runtime's own element — a <button> `offer` built, or
145+
// a span `selectableOffer` gave a role and a tab stop — and either was a promise a
146+
// handler kept. The handlers left with the scripts above, so a copy that carried them
147+
// offered a press nothing can take — and the first Tab into an exported decision page
148+
// landed on one. It was a `choose` group's pick mark, which
148149
// drew the keyboard address for a key that answers nothing, into a row holding no
149150
// column for it: the 30px an option reserves is live-page-only, so the digit came
150151
// down 8px over the option's own first word.
@@ -160,15 +161,18 @@ export function bake() {
160161
//
161162
// A copy parts from paper on one thing: it is still a document the browser runs, so a
162163
// control the browser drives keeps working, and lf-shot flips its frames on a checkbox in
163-
// a file with no script behind it. The tab stop is what tells the two apart, being the
164-
// runtime's own reading of a press it made (DECISION_CONTROL): a checkbox, a label and a §
165-
// link never had one, and lf-shot's checkbox keeps the role that says what it is.
164+
// a file with no script behind it. What tells the two apart is the marker's *value*,
165+
// which is `offer` naming what it built: "button" for the one tag whose whole effect was
166+
// the handler that left with the scripts, and the empty string for every other tag — so a
167+
// checkbox, a label and a § link stay, keeping the role that says what they are. A press
168+
// that was never native carries a word too, `selectableOffer` writing there the role it
169+
// gave its span, since a span is pressable only while a handler is there to answer it.
166170
//
167-
// Asked of the marker rather than of the role, because `offer`'s role="button" is not
168-
// what a press ends up wearing: a widget with an ARIA pattern to keep writes its own
169-
// over it, so every press in lf-tabs' strip says role="tab", and naming that second
170-
// role would have left the next widget's. The author's roles are untouched, being on
171-
// the author's elements: a board's columns stay a list of cards to a screen reader.
171+
// Asked of the marker rather than of the role, because a press does not end up wearing
172+
// one role: a widget with an ARIA pattern to keep names its own, so every press in
173+
// lf-tabs' strip says role="tab", and naming a single role would have left that widget's
174+
// out or the next one's. The author's roles are untouched, being on the author's
175+
// elements: a board's columns stay a list of cards to a screen reader.
172176
//
173177
// The box a press hung in goes with it. A suggestion's control row is nothing but its
174178
// two controls, and left standing it still claims the rail the page reserves for it
@@ -178,7 +182,7 @@ export function bake() {
178182
// nothing, and `anchor(top)` is measured from it.
179183
// A reaction is the reader's mark on the page, and a copy keeps a mark the way it
180184
// keeps a chosen option's word: the glyph stays in the margin with its press taken
181-
// off — the tab stop, interactive role, marker, and title that promised a press.
185+
// off — the button element it was built as, and the marker and title that promised it.
182186
// The remaining glyph becomes a named static image, and the wash on the words,
183187
// which is a highlight-registry entry no serialization carries, is written into
184188
// the words as a <mark> for this copy alone (the theme's html.lf-copy rule paints

0 commit comments

Comments
 (0)