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 {
|
.panel-header {
|
||||||
|
padding: 24px;
|
||||||
|
border-bottom: 1px solid var(--_border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-header .description {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.panel-header-title {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 24px;
|
margin: 0 0 8px;
|
||||||
border-bottom: 1px solid var(--_border);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-close {
|
.panel-close {
|
||||||
|
|||||||
@@ -67,12 +67,15 @@ export class ProboThemedBanner extends HTMLElement {
|
|||||||
|
|
||||||
<probo-preference-panel>
|
<probo-preference-panel>
|
||||||
<div class="floating" data-position="${this.esc(position)}">
|
<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">
|
<div class="panel-header">
|
||||||
<p class="title" id="probo-panel-title" style="margin:0">Preferences</p>
|
<div class="panel-header-title">
|
||||||
<button class="panel-close" data-action="back" aria-label="Close">
|
<p class="title" id="probo-panel-title" style="margin:0">Customise Preferences</p>
|
||||||
${CLOSE_ICON}
|
<button class="panel-close" data-action="back" aria-label="Close">
|
||||||
</button>
|
${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>
|
</div>
|
||||||
<probo-category-list>
|
<probo-category-list>
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user