Consent-check skill: the cookie button step after the first-paint step

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 10:50:03 +01:00
co-authored by Claude Fable 5.2
parent 1025446a28
commit fb92b357e8
2 changed files with 12 additions and 12 deletions
@@ -44,12 +44,6 @@ before analytics or marketing consent — check the project's choice in "Project
5. Banner not found (`data-ipal="banner"`) → `<CookieBanner/>` is not 5. Banner not found (`data-ipal="banner"`) → `<CookieBanner/>` is not
rendered, or an older IAPL version without `data-ipal` attributes on the buttons → **iapl-upgrade**. rendered, or an older IAPL version without `data-ipal` attributes on the buttons → **iapl-upgrade**.
7. Cookie button (1.17.2, consent.md → "Where the cookie button sits"): after a decision, on a long page, a short
page and a page with a form, desktop and phone width — the button is in the bottom corner of the window at the
top, in the middle and with the footer in view (it must not ride up on the footer); scrolled to the very end it
lies on no link or button (it may step up a little); Tab reaches it and Enter reopens the banner. A footer whose
corner is all links: `side="right"` or a larger `--ipal-cookie-button-offset`. A project scroll handler or a
button rendered inside the footer → remove (AGENT.md §7).
6. Banner at first paint (1.17.0, consent.md → "First paint"): the banner is in the server HTML and an inline 6. Banner at first paint (1.17.0, consent.md → "First paint"): the banner is in the server HTML and an inline
script shows or hides it before the browser paints; pages stay static. script shows or hides it before the browser paints; pages stay static.
```bash ```bash
@@ -61,6 +55,12 @@ before analytics or marketing consent — check the project's choice in "Project
`nonce` to `<SiteProviders>`. A visitor who decided must never see the banner on reload; one whose `nonce` to `<SiteProviders>`. A visitor who decided must never see the banner on reload; one whose
decision is from an older Policy version must see it at once. A click on a button before hydration decision is from an older Policy version must see it at once. A click on a button before hydration
counts (the checks above click as soon as the button is visible). counts (the checks above click as soon as the button is visible).
7. Cookie button (1.17.2, consent.md → "Where the cookie button sits"): after a decision, on a long page, a short
page and a page with a form, desktop and phone width — the button is in the bottom corner of the window at the
top, in the middle and with the footer in view (it must not ride up on the footer); scrolled to the very end it
lies on no link or button (it may step up a little); Tab reaches it and Enter reopens the banner. A footer whose
corner is all links: `side="right"` or a larger `--ipal-cookie-button-offset`. A project scroll handler or a
button rendered inside the footer → remove (AGENT.md §7).
The script needs buttons with `data-ipal="accept"` / `"reject"` — the plugin's The script needs buttons with `data-ipal="accept"` / `"reject"` — the plugin's
`CookieBanner` has them in every `settings` mode (`inline`, `modal`, `detailed`). A custom banner in the project violates AGENT.md §7. `CookieBanner` has them in every `settings` mode (`inline`, `modal`, `detailed`). A custom banner in the project violates AGENT.md §7.
@@ -44,12 +44,6 @@ before analytics or marketing consent — check the project's choice in "Project
5. Banner not found (`data-ipal="banner"`) → `<CookieBanner/>` is not 5. Banner not found (`data-ipal="banner"`) → `<CookieBanner/>` is not
rendered, or an older IAPL version without `data-ipal` attributes on the buttons → **iapl-upgrade**. rendered, or an older IAPL version without `data-ipal` attributes on the buttons → **iapl-upgrade**.
7. Cookie button (1.17.2, consent.md → "Where the cookie button sits"): after a decision, on a long page, a short
page and a page with a form, desktop and phone width — the button is in the bottom corner of the window at the
top, in the middle and with the footer in view (it must not ride up on the footer); scrolled to the very end it
lies on no link or button (it may step up a little); Tab reaches it and Enter reopens the banner. A footer whose
corner is all links: `side="right"` or a larger `--ipal-cookie-button-offset`. A project scroll handler or a
button rendered inside the footer → remove (AGENT.md §7).
6. Banner at first paint (1.17.0, consent.md → "First paint"): the banner is in the server HTML and an inline 6. Banner at first paint (1.17.0, consent.md → "First paint"): the banner is in the server HTML and an inline
script shows or hides it before the browser paints; pages stay static. script shows or hides it before the browser paints; pages stay static.
```bash ```bash
@@ -61,6 +55,12 @@ before analytics or marketing consent — check the project's choice in "Project
`nonce` to `<SiteProviders>`. A visitor who decided must never see the banner on reload; one whose `nonce` to `<SiteProviders>`. A visitor who decided must never see the banner on reload; one whose
decision is from an older Policy version must see it at once. A click on a button before hydration decision is from an older Policy version must see it at once. A click on a button before hydration
counts (the checks above click as soon as the button is visible). counts (the checks above click as soon as the button is visible).
7. Cookie button (1.17.2, consent.md → "Where the cookie button sits"): after a decision, on a long page, a short
page and a page with a form, desktop and phone width — the button is in the bottom corner of the window at the
top, in the middle and with the footer in view (it must not ride up on the footer); scrolled to the very end it
lies on no link or button (it may step up a little); Tab reaches it and Enter reopens the banner. A footer whose
corner is all links: `side="right"` or a larger `--ipal-cookie-button-offset`. A project scroll handler or a
button rendered inside the footer → remove (AGENT.md §7).
The script needs buttons with `data-ipal="accept"` / `"reject"` — the plugin's The script needs buttons with `data-ipal="accept"` / `"reject"` — the plugin's
`CookieBanner` has them in every `settings` mode (`inline`, `modal`, `detailed`). A custom banner in the project violates AGENT.md §7. `CookieBanner` has them in every `settings` mode (`inline`, `modal`, `detailed`). A custom banner in the project violates AGENT.md §7.