Skip to content

Commit 4feedee

Browse files
author
Gusted
committed
Avoid new stack context for task list items
- Avoid creating a new stack context on a task list item, this PR does that by removing the `position: relative` which causes a new stack context to be created on that element. And thereby solving that popups weren't able to utilize their z-index and weren't able to show properly.
1 parent f85bb6f commit 4feedee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web_src/less/markup/content.less

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,13 @@
158158

159159
.task-list-item {
160160
list-style-type: none;
161-
position: relative;
162161
line-height: 1.5rem;
163162
min-height: 1.5rem; // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the <li> can be visible
164163

165164
input[type="checkbox"] {
166165
position: absolute;
167-
top: .25em;
168-
left: -1.6em;
166+
left: 1.4em;
167+
top: 3.8em;
169168
}
170169

171170
p {

0 commit comments

Comments
 (0)