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:
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user