diff --git a/app/analytics.php b/app/analytics.php index 6902400..f0b4237 100644 --- a/app/analytics.php +++ b/app/analytics.php @@ -145,12 +145,12 @@ function app_analytics_body_html(): string diff --git a/assets/css/privacy-settings.css b/assets/css/privacy-settings.css index 3e69adf..df99dd6 100644 --- a/assets/css/privacy-settings.css +++ b/assets/css/privacy-settings.css @@ -75,6 +75,17 @@ border-color: #2f6418; } +.analytics-consent__actions [data-analytics-consent="denied"] { + background: #ffffff; + color: #2f6418 !important; +} + +.analytics-consent__actions [data-analytics-consent="denied"]:hover { + background: #f2f7ef; + border-color: #2f6418; + color: #244f13 !important; +} + .analytics-consent__actions button:focus-visible, .analytics-consent-settings:focus-visible { outline: solid 3px #f0b429; diff --git a/scripts/check-analytics-consent.php b/scripts/check-analytics-consent.php index 251a121..1dc2b22 100644 --- a/scripts/check-analytics-consent.php +++ b/scripts/check-analytics-consent.php @@ -61,8 +61,14 @@ $head = app_analytics_head_html(); $body = app_analytics_body_html(); $assert('Consent-Stylesheet wird lokal und filterarm geladen', str_contains($head, 'assets/css/privacy-settings.css')); $assert('Zustimmen und Ablehnen stehen in derselben Ebene', - str_contains($body, 'data-analytics-consent="denied"') - && str_contains($body, 'data-analytics-consent="granted"')); + str_contains($body, 'data-analytics-consent="denied">Nur notwendige Cookies') + && str_contains($body, 'data-analytics-consent="granted">Zustimmen')); +$assert('Einwilligungsdialog ist eindeutig benannt', + str_contains($body, '