Changelog
This changelog tracks additions and changes to the public banner CSS surface — class names, token names, compliance rules, template IDs, and sanitizer patterns.
v2026.11.30 - The backdrop can be switched off
Section titled “v2026.11.30 - The backdrop can be switched off”“Dim the page behind the banner” in the Design tab is a new setting of the bar and floating layouts. It is on for every banner: nothing changes until you switch it off. Off, .ag-overlay gets background: none and pointer-events: none, so visitors can use the page while the banner is open, and aria-modal on .ag-banner is false: Tab leaves the banner, and Escape decides nothing. A dialog always dims the page. Custom CSS that sets a background on .ag-overlay dims the page again but does not block it; use the setting instead.
v2026.11.30 - Compact banner, a strip to fold it into, the language switcher can be hidden
Section titled “v2026.11.30 - Compact banner, a strip to fold it into, the language switcher can be hidden”“Banner size” in the Design tab has two values. Comfortable is the banner as it was and the default, for new banners too. Compact, which the owner chooses, shows the title, the text and the decision: .ag-bar-cats-list and .ag-bar-cats-label are not shown, #ag-toggle-details (Customize) stands next to the buttons, and .ag-btns is a grid of equal columns, so the buttons are always of one size. The DOM is the same in both sizes. The compact layout rules start with .ag-banner-inner >, as the comfortable ones do; check custom CSS that moves or pads these elements when you switch.
.ag-minimize is a new button, shown only when “Visitors can minimize the banner” is on and the visitor has not decided yet. While the banner is folded, .ag-banner and .ag-overlay carry .minimized and aria-modal is false. A rule that hides the banner or its buttons through .minimized is refused when you save (HTTP 422).
In the bar layout .ag-banner-inner now scrolls (overflow-y: auto) when it is taller than the screen, as it already did in dialog and floating: opened details on a small phone, a phone on its side or a page at 200% pushed the buttons off the screen. Content you position outside .ag-banner-inner of a bar is clipped.
.ag-lang-select may be missing on a banner with several languages: the “Language switcher on the banner” setting decides. Its arrow now shows on the dark theme, where it was black on dark.
v2026.11.30 - KookiOk mark on the privacy button
Section titled “v2026.11.30 - KookiOk mark on the privacy button”On the free plan .ag-trigger-btn now holds .ag-mark, a small KookiOk cookie on the edge that faces the middle of the screen; on hover and on keyboard focus it opens into the word “KookiOk”. The privacy popup ends with the same .ag-branding line as the banner. Both are protected like the badge: a rule that names .ag-mark is refused when you save (HTTP 422). A paid plan that removes the KookiOk branding removes both. The button keeps its size, place and accessible name; with the mark it is position: relative, and its own hover no longer changes its opacity.
v2026.11.16 - Category switches work with the keyboard; the privacy popup fits small phones
Section titled “v2026.11.16 - Category switches work with the keyboard; the privacy popup fits small phones”.ag-detail-toggle, the switch of each category in the details layer, is now a <button role="switch"> (it was a <span>): Tab reaches it, Enter and Space flip it, and screen readers name it after the category. The Necessary switch is a disabled button. A rule for button elements in your custom CSS now reaches these switches too. A keyboard user sees a 2px outline in your accent colour around the focused switch (.ag-detail-toggle:focus-visible).
.ag-popup, the privacy popup, is still 342px wide, now with box-sizing: border-box, and never wider than the screen less 32px, so its close button stays on screen on a 320px phone. Its background is opaque: the popup’s background (--surface, or a background you set on .ag-popup) lies on solid white (light theme) or black (dark theme), so the page no longer shows through the translucent surfaces of the Glass and Aurora templates. The popup now uses its ::before and ::after pseudo-elements for this.
v2026.11.09 - The default where no banner is shown is not called a consent
Section titled “v2026.11.09 - The default where no banner is shown is not called a consent”Where no regulation applies (outside the banner’s region, or a country mapped to none) every category is allowed on arrival and nobody decides anything. For that default the privacy popup now labels the date “Allowed by default”, titles itself (.ag-popup-title) with your “Cookie Settings” text and labels its buttons (.ag-popup-btn) with your “Customize settings” and “Reject all” texts. It shows no consent ID: nothing was recorded.
The consent ID line has a class of its own, .ag-popup-id, which carries word-break: break-all (before, .ag-popup-meta div:last-child did). A popup without that line has a single .ag-popup-meta line, which wraps at words, and a decision with neither a date nor an ID has no .ag-popup-meta at all.
v2026.11.09 - Custom CSS can no longer hide the banner
Section titled “v2026.11.09 - Custom CSS can no longer hide the banner”* { scale: 0 !important } used to shrink the whole banner, its buttons and the “Powered by KookiOk” badge to nothing, and other rules hid it as well (:host { display: none }, .ag-overlay { display: none }, div { clip-path: inset(50%) }, * { zoom: .01 }). An opacity: 0 on .ag-banner made it invisible while it still took clicks.
The banner’s stylesheet now opens with a guard that custom CSS cannot override: on every element of the banner, scale, translate, rotate, zoom, offset-path, visibility, content-visibility, clip-path, clip, mask and content keep their defaults, and so do the display, opacity and transform of the host, the root <div> and .ag-overlay, among others. Rules setting them are saved and have no effect. The plainest values that hide something where these properties have legitimate uses (for example display: none on .ag-banner or #ag-reject-all, an opacity under 0.5 on .ag-banner, transform: scale(0), left: -9999px) are refused when you save, with the new validation code banner_hiding_attempted. Layouts, entrance animations from a visible resting state, hover effects and positions on the screen keep working. The check is no barrier against CSS written to get around it: Banner hiding lists what it does not judge.
Custom CSS saved before that hides the banner in one of these ways has no effect from now on where the guard holds; a value the guard leaves free keeps applying until the CSS is saved again.
v2026.11.09 - Global Privacy Control: the visitor can choose
Section titled “v2026.11.09 - Global Privacy Control: the visitor can choose”A visitor whose browser sends Global Privacy Control can now allow categories themselves, from the banner they open with the privacy button. Their category switches are therefore no longer locked: .ag-bar-cat and .ag-detail-cat carry .locked only for Necessary, as for every other visitor (before, every category was .locked while the signal was sent).
.ag-gpc-notice is rendered while the signal applies to the visitor (the banner’s “Global Privacy Control applies” setting decides where) and has not been overridden by their own choice, and no longer whenever the browser sends it. The privacy popup (.ag-popup-meta) now says what was decided: the date of the consent, of the refusal, or of the refusal Global Privacy Control made.
v2026.11.09 - The logo keeps its proportions
Section titled “v2026.11.09 - The logo keeps its proportions”.ag-logo was stretched across the dialog and floating layouts: a logo less than 3.75 times as wide as it is high filled a 120x32px box, so a square logo showed 3.75 times wider than tall, and a logo smaller than that box was enlarged to fill it. The logo now keeps its own proportions in every layout and starts where the content starts. It is at most 32px high and 200px wide (was 120px), never wider than the content, so a logo up to 6.25 times as wide as it is high shows as high as a square one; a smaller image keeps its own size.
New default properties: align-self: flex-start, max-width: min(200px, 100%) (was 120px), object-fit: contain. max-height: 32px and margin-bottom: 10px are unchanged.
If your custom CSS centers the banner’s content with align-items on .ag-banner-inner, the logo no longer follows it: center the logo with .ag-banner-inner > .ag-logo { margin-left: auto; margin-right: auto; }, which works in every layout.
v2026.08.04 — Custom CSS reaches the privacy trigger and preferences popup
Section titled “v2026.08.04 — Custom CSS reaches the privacy trigger and preferences popup”Schema version: 2026.08.04
Custom CSS saved in the banner editor is now injected into all three consent shadow roots — the banner (#ag-consent-banner-host), the floating privacy trigger (#ag-privacy-trigger), and the preferences popup (#ag-privacy-popup-host) — instead of the banner only. :host token overrides now apply per shadow root, so one token block themes all three surfaces.
New stable classes (11)
Section titled “New stable classes (11)”| Surface | Classes |
|---|---|
| Trigger | .ag-trigger-btn |
| Popup | .ag-popup, .ag-popup-header, .ag-popup-title, .ag-popup-close, .ag-popup-cat, .ag-popup-cat-icon, .ag-popup-cat-label, .ag-popup-meta, .ag-popup-actions, .ag-popup-btn |
Schema entries carry a new optional surface field ("trigger" / "popup"; absent = banner shadow root). Total classes: 47.
Behavior notes
Section titled “Behavior notes”- The popup’s Withdraw button (
#ag-popup-withdraw) gains the same runtime inline!importantanti-hide lock as the banner’s Accept-selected button — consent withdrawal must stay reachable (GDPR Art. 7(3)). - Previously inert
.ag-trigger-btn/.ag-popup-*rules in existing custom CSS become active with this release — review your stylesheet if you had experimented with these selectors.
Hardening follow-up (same day)
Section titled “Hardening follow-up (same day)”Live browser testing against the released bundle found the locks were defeatable, so they were strengthened:
- The anti-hide lock reset only the
transformshorthand. The independentscale/translate/rotatelonghands compose on top of it and still hid the button, as did negativemargin, CSS motion paths (offset-path+offset-distance),mask-image,content-visibility,text-indentandz-index. All are now locked on both protected buttons. - Because custom CSS reaches
:host,:host { display: none }removed the privacy trigger, and any containing-block property on:host(transform,filter,backdrop-filter,will-change,perspective,contain) re-anchored the fixed-position popup to the end of the document — measured roughly 1450px below the fold, so clicking the trigger appeared to do nothing. Both shadow hosts now carry inline structural locks.
Token overrides on :host are unaffected, and configs without custom CSS render identically.
v2026.05.18 — Initial release
Section titled “v2026.05.18 — Initial release”Schema version: 2026.05.18
Source commit: 1c2164935d83
This is the first stable, documented release of the banner CSS public surface.
Classes (34 total)
Section titled “Classes (34 total)”| Role | Count | Classes |
|---|---|---|
| Container | 12 | .ag-overlay, .ag-banner, .ag-banner-inner, .ag-content, .ag-btns, .ag-bar-cats, .ag-bar-cats-header, .ag-bar-cats-list, .ag-detail, .ag-detail-grid, .ag-detail-cat, .ag-detail-cat-head |
| Text | 6 | .ag-title, .ag-desc, .ag-bar-cats-label, .ag-detail-cat-name, .ag-detail-cat-desc, .ag-gpc-notice |
| Interactive | 9 | .ag-btn, .ag-bar-cat, .ag-detail-toggle, .ag-link, .ag-lang-select, .btn-primary, .btn-secondary, .btn-save, .btn-tertiary |
| Media | 1 | .ag-logo |
| Decorative | 1 | .ag-bar-cat-dot |
| Branding (protected) | 5 | .ag-branding, .ag-cookie-mark, .ag-bite, .ag-cr1, .ag-cr2, .ag-cr3 |
Tokens (29 total)
Section titled “Tokens (29 total)”| Group | Tokens |
|---|---|
| surfaces | --surface, --surface-elevated, --surface-sunken, --surface-overlay, --surface-border, --surface-text, --surface-text-muted, --surface-text-subtle |
| interactive | --btn-fill, --btn-text, --btn-border, --btn-hover-fill |
| accent | --accent, --accent-hover, --accent-on-surface |
| categories | --toggle-active, --toggle-track, --category-bg |
| trigger | --trigger-bg, --trigger-icon |
| effects | --radius, --shadow, --blur, --border-style, --animation |
| typography | --font-family, --font-heading-size, --font-body-size, --font-button-size |
Templates (7 total)
Section titled “Templates (7 total)”classic, minimal, glass, editorial, neon, bauhaus, aurora
Compliance rules (13 total)
Section titled “Compliance rules (13 total)”- 3 errors:
reject_all_hidden,pre_ticked_checkboxes,shadow_glow_asymmetry - 10 warnings:
buttons_visually_unequal,brand_nudge_on_accept,dark_pattern_color_psychology,tap_target_too_small,font_weight_asymmetry,accept_more_prominent_size,consent_expiry_too_long,decline_cooldown_too_short,missing_privacy_policy,missing_cookie_policy
Branding protection layers (4)
Section titled “Branding protection layers (4)”- Server-side render gating (whiteLabel flag)
- Inline
!importantruntime locks inconsent-runtime.js - Server-side
CssSanitizer::validate()returning HTTP 422 - Tampering telemetry (runtime check and report endpoint; recording is behind a server-side switch that ships turned off)
Documentation portal
Section titled “Documentation portal”Initial release of the public documentation at api.kookiok.com/docs/. Includes:
- 30 MDX pages
banner-schema.jsonmachine-readable exportllms.txtandllms-full.txtAI artefacts- Markdown mirrors of all pages
Upcoming
Section titled “Upcoming”- Per-locale CSS overrides (planned)
- CSS animation preset library
- Visual regression test suite for templates