Skip to content

Commit ff95aa7

Browse files
Merge pull request #7513 from christianbeeznest/fixes-updates255
Internal: Improve cookie banner links rendering and styling
2 parents 6709d15 + 54d77e0 commit ff95aa7

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

public/main/admin/questions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ function build_question_type_icon_html(int $type): string
10191019

10201020
if (!empty($deleteUrl)) {
10211021
$question->questionData .= Display::url(
1022-
get_lang('Delete'),
1022+
Display::getMdiIcon(ActionIcon::DELETE, 'ch-tool-icon text-white', null, ICON_SIZE_SMALL, get_lang('Delete')).' '.get_lang('Delete'),
10231023
$deleteUrl,
10241024
[
10251025
'class' => 'inline-flex items-center rounded-lg bg-danger px-3 py-1.5 text-sm font-semibold text-white hover:bg-danger/90',

public/main/template/default/admin/questions.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<style>
66
details > summary::-webkit-details-marker { display: none; }
77
details > summary { list-style: none; }
8-
.ch-q-preview a { color: rgb(var(--color-primary-base)); text-decoration: underline; }
8+
.ch-q-preview a { color: rgb(var(--color-primary-base)); }
99
.ch-q-preview img { max-width: 100%; height: auto; border-radius: 12px; }
1010
.ch-q-preview table { width: 100%; border-collapse: separate; border-spacing: 0; }
1111
.ch-q-preview th, .ch-q-preview td { border: 1px solid #e4e9ed; padding: 8px; vertical-align: top; }
@@ -124,7 +124,7 @@
124124
</summary>
125125

126126
<div class="px-5 pb-5">
127-
<div class="rounded-2xl border border-gray-25 bg-gray-10 p-4">
127+
<div class="rounded-2xl border border-gray-25 bg-gray-10 p-4 mt-4">
128128
<div class="ch-q-preview text-body-2 text-gray-90 leading-6">
129129
{{ question.questionData }}
130130
</div>

src/CoreBundle/Resources/views/Layout/cookie_banner.html.twig

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{# Cookie banner (C1-compatible behavior) #}
21
{% set cookieWarningRaw = chamilo_settings_get('platform.cookie_warning')|default('')|trim|lower %}
32
{% set cookieWarningEnabled = (cookieWarningRaw == 'true') %}
43
{% set cookieAck = app.request.cookies.get('ChamiloUsesCookies') %}
@@ -21,12 +20,19 @@
2120
aria-hidden="true">!</span>
2221

2322
<div class="text-sm text-gray-90">
24-
<div class="leading-snug">
25-
{{ youAcceptCookiesText }}
23+
<div class="leading-snug
24+
[&_a]:font-semibold
25+
[&_a]:underline [&_a]:underline-offset-2
26+
[&_a]:text-primary hover:[&_a]:text-primary/80">
27+
{{ youAcceptCookiesText|raw }}
2628
</div>
2729

2830
<div id="chamilo-cookie-banner-more"
29-
class="mt-2 hidden text-sm leading-relaxed text-gray-90">
31+
class="mt-2 hidden text-sm leading-relaxed text-gray-90
32+
[&_a]:font-semibold
33+
[&_a]:underline [&_a]:underline-offset-2
34+
[&_a]:text-primary hover:[&_a]:text-primary/80
35+
[&_a:hover]:opacity-90">
3036
{{ helpCookieUsageValidationHtml|raw }}
3137
</div>
3238

0 commit comments

Comments
 (0)