diff --git a/addons/website/data/website_demo.xml b/addons/website/data/website_demo.xml
index 40e5168ad1f..6c1be81c3aa 100644
--- a/addons/website/data/website_demo.xml
+++ b/addons/website/data/website_demo.xml
@@ -159,10 +159,10 @@ response = request.render("website.template_partner_comment", {
-
+
-
diff --git a/addons/website/static/src/js/editor/snippets.options.js b/addons/website/static/src/js/editor/snippets.options.js
index 14f1b6f0a4f..f9004b421e1 100644
--- a/addons/website/static/src/js/editor/snippets.options.js
+++ b/addons/website/static/src/js/editor/snippets.options.js
@@ -188,7 +188,7 @@ options.registry.carousel = options.Class.extend({
var cycle = this.$inner.find('.item').length;
var $active = this.$inner.find('.item.active, .item.prev, .item.next').first();
var index = $active.index();
- this.$('.carousel-control, .carousel-indicators').removeClass('d-none');
+ this.$('.carousel-control-prev, .carousel-control-next, .carousel-indicators').removeClass('d-none');
this.$indicators.append('
');
var $clone = this.$('.item:first').clone(true);
$clone.removeClass('active').insertAfter($active);
@@ -223,7 +223,7 @@ options.registry.carousel = options.Class.extend({
self._rebindEvents();
self.remove_process = false;
if (cycle === 1) {
- self.$target.find('.carousel-control, .carousel-indicators').addClass('d-none');
+ self.$target.find('.carousel-control-prev, .carousel-control-next, .carousel-indicators').addClass('d-none');
}
});
_.defer(function () {
@@ -258,7 +258,7 @@ options.registry.carousel = options.Class.extend({
*/
_rebindEvents: function () {
var self = this;
- this.$target.find('.carousel-control').off('click').on('click', function () {
+ this.$target.find('.carousel-control-prev, .carousel-control-next').off('click').on('click', function () {
self.$target.carousel($(this).data('slide'));
});
this.$target.find('.carousel-indicators [data-slide-to]').off('click').on('click', function () {
diff --git a/addons/website/static/src/scss/website.scss b/addons/website/static/src/scss/website.scss
index fa35b6dbc58..a0fbee0ce41 100644
--- a/addons/website/static/src/scss/website.scss
+++ b/addons/website/static/src/scss/website.scss
@@ -190,7 +190,7 @@ table.table_desc tr td {
.item {
height: 100%;
}
- .carousel-control {
+ .carousel-control-prev, .carousel-control-next {
cursor: pointer;
span {
top: 50%;
@@ -199,8 +199,8 @@ table.table_desc tr td {
}
}
}
-.carousel .carousel-control {
- &.left {
+.carousel {
+ .carousel-control-prev {
left: -10px;
* {
position: absolute;
@@ -209,7 +209,7 @@ table.table_desc tr td {
right: 50%;
}
}
- &.right {
+ .carousel-control-next {
right: -10px;
* {
position: absolute;
@@ -439,11 +439,9 @@ div.carousel .container {
}
}
- .carousel-control {
- &.right, &.left {
- background-image: none;
- background-color: transparent;
- }
+ .carousel-control-next, .carousel-control-prev {
+ background-image: none;
+ background-color: transparent;
}
}
}
@@ -461,7 +459,7 @@ div.carousel {
max-height: 95%;
padding: 10px;
}
- .carousel-control {
+ .carousel-control-prev, .carousel-control-next {
cursor: pointer;
}
}
diff --git a/addons/website/static/src/xml/website.gallery.xml b/addons/website/static/src/xml/website.gallery.xml
index 0ac854554d7..026b75c2377 100644
--- a/addons/website/static/src/xml/website.gallery.xml
+++ b/addons/website/static/src/xml/website.gallery.xml
@@ -27,8 +27,8 @@
-
-
+
+
diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml
index 2fb2ac8dba3..7dd59e3499d 100644
--- a/addons/website/views/snippets.xml
+++ b/addons/website/views/snippets.xml
@@ -36,8 +36,8 @@
-