Add description to cookie banner preference panel

Adds a short description under the preference panel title:
"Choose which cookie categories to allow. Necessary cookies are
always active as they are needed for the site to work."

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-22 18:05:34 +04:00
parent 50c0be6652
commit 4678c58ab0
2 changed files with 18 additions and 7 deletions

View File

@@ -164,11 +164,19 @@ export const THEMED_STYLES = `
}
.panel-header {
padding: 24px;
border-bottom: 1px solid var(--_border);
}
.panel-header .description {
margin: 0;
}
.panel-header-title {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px;
border-bottom: 1px solid var(--_border);
margin: 0 0 8px;
}
.panel-close {

View File

@@ -67,12 +67,15 @@ export class ProboThemedBanner extends HTMLElement {
<probo-preference-panel>
<div class="floating" data-position="${this.esc(position)}">
<div class="card" role="dialog" aria-modal="true" aria-labelledby="probo-panel-title">
<div class="card" role="dialog" aria-modal="true" aria-labelledby="probo-panel-title" aria-describedby="probo-panel-desc">
<div class="panel-header">
<p class="title" id="probo-panel-title" style="margin:0">Preferences</p>
<button class="panel-close" data-action="back" aria-label="Close">
${CLOSE_ICON}
</button>
<div class="panel-header-title">
<p class="title" id="probo-panel-title" style="margin:0">Customise Preferences</p>
<button class="panel-close" data-action="back" aria-label="Close">
${CLOSE_ICON}
</button>
</div>
<p class="description" id="probo-panel-desc">Choose which cookie categories to allow. Necessary cookies are always active as they are needed for the site to work.</p>
</div>
<probo-category-list>
<template>