S8 fix - help centre glossary classes leaked onto the Issue (hold) status pill
help.js injects its stylesheet on every page, and its glossary pills used bare
class selectors (.pill-draft ... .pill-hold). The creator's Issue (hold) status
radio also carries the class pill-hold, so the injected rule painted that radio
error-red at ALL times - selected or not. Reported by Nick ('why is the issues
(hold) button illuminated at all times'), 2026-08-20.
Pre-existing, not from this branch: help.js has had the bare selectors since
the login-portal commit, and the creator's pill-hold class predates the R2
branch. Every glossary rule is now scoped to .ui-help-pill.pill-*, which the
glossary markup already carries. Verified live: unselected, the hold pill's
computed style now matches its neighbours exactly; selected, it is still the
red fill; the glossary's own Hold pill keeps its tint. helptip_check gains the
pin (13 -> 14): no bare .pill-* selector in help.js, ever again.
Item: S8 (the help component's app-wide surface).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -78,6 +78,13 @@ def main():
|
||||
outline_bad.append(name)
|
||||
chk("div/span click handlers app-wide: 0 (baseline 12/2)", divspan == 0, divspan)
|
||||
chk("outline:none without a replacement: 0", not outline_bad, outline_bad[:4])
|
||||
# The glossary pill classes are injected app-wide and MUST stay scoped:
|
||||
# a bare .pill-hold painted the creator's Issue (hold) status radio
|
||||
# error-red at all times (found 2026-08-20).
|
||||
help_src = io.open(os.path.join(HTML, "help.js"), encoding="utf-8").read()
|
||||
bare = re.findall(r"(?<!\.ui-help-pill)\.pill-[a-z]+(?=\s*\{)", help_src)
|
||||
chk("help.js pill classes are scoped to .ui-help-pill (no bare .pill-*)",
|
||||
not bare, bare[:4])
|
||||
chk("the audit document exists with the per-page table",
|
||||
"## Per-page results" in io.open(os.path.join(ROOT, "docs", "reference",
|
||||
"accessibility-audit.md"), encoding="utf-8").read())
|
||||
|
||||
Reference in New Issue
Block a user