Skip to content

Commit 42a22e8

Browse files
committed
Title should have no background
This is especially important for dragging in edit mode when there is a gray background that we don't want to obstruct, but also in general if the accordion is styled with a background in a customization.
1 parent dea6336 commit 42a22e8

File tree

1 file changed

+5
-1
lines changed
  • packages/volto-accordion-block/src/theme

1 file changed

+5
-1
lines changed

packages/volto-accordion-block/src/theme/main.less

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
padding: @itemVerticalPadding @itemHorizontalPadding;
5353
margin: 0;
5454
}
55+
5556
// block chooser hover items don't have a bg color change, title block had a hover bg color
5657
.title {
5758
background: none;
@@ -110,7 +111,8 @@
110111
.block-editor-accordion {
111112
.accordion-item {
112113
border-top: 1px solid black;
113-
clear: both; /* ensure floated images from content area don't spill over next accordion title */
114+
/* ensure floated images from content area don't spill over next accordion title */
115+
clear: both;
114116

115117
&:last-child {
116118
border-bottom: 1px solid black;
@@ -126,6 +128,8 @@
126128
input {
127129
width: 100%;
128130
border: none;
131+
/* No background, so the dragging works seamlessly */
132+
background: none;
129133

130134
&:focus {
131135
outline: none;

0 commit comments

Comments
 (0)