From dc0ffd201549ab6b7c90dd8c44e15b8b216213be Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Fri, 30 Sep 2022 07:21:56 +0000 Subject: [PATCH] [FIX] website: adapt cookies bar buttons to match security concerns The cookies bar default templates are designed in order to guide the user towards selecting the option that will provide the best user experience. This raises security concerns (see discussion in PR for details). This commit adapts the buttons of the default cookies bar templates so that both options are shown with the same style, forcing the user to take a decision. task-2800976 closes odoo/odoo#101845 X-original-commit: 32d88f47a67679b7e90fa58e25089846484b48ca Signed-off-by: Romain Derie (rde) --- addons/website/static/src/xml/website.cookies_bar.xml | 8 ++++---- addons/website/views/website_templates.xml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/website/static/src/xml/website.cookies_bar.xml b/addons/website/static/src/xml/website.cookies_bar.xml index f2227b29646..703cc85af33 100644 --- a/addons/website/static/src/xml/website.cookies_bar.xml +++ b/addons/website/static/src/xml/website.cookies_bar.xml @@ -17,11 +17,11 @@ Allow all cookies + class="js_close_popup o_cookies_bar_accept_all o_cookies_bar_text_button btn btn-outline-primary rounded-circle mb-1 px-2 py-1">Allow all cookies Only allow essential cookies + class="js_close_popup o_cookies_bar_accept_essential o_cookies_bar_text_button_essential btn btn-outline-primary rounded-circle mt-1 mb-2 px-2 py-1">Only allow essential cookies