mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-06-01 19:01:37 +00:00
fix(frontend): scope checkbox hit-area pseudo to the task row
The pseudo-element that extends the checkbox hit target also covered label text content, which broke Playwright actionability checks for clicks on text inside wider FancyCheckbox labels (e.g. the "Show Archived" toggle on the projects list page). Move the rule out of BaseCheckbox and into SingleTaskInProject's deep override, where the label slot is already hidden via display: none, so no neighboring content can be intercepted.
This commit is contained in:
@@ -40,20 +40,6 @@ const emit = defineEmits<{
|
||||
user-select: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
display: inline-flex;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
// Extend the hit target to >=44x44 without affecting layout (WCAG 2.5.5).
|
||||
.base-checkbox__label::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset-block-start: 50%;
|
||||
inset-inline-start: 50%;
|
||||
min-block-size: 44px;
|
||||
min-inline-size: 44px;
|
||||
block-size: 100%;
|
||||
inline-size: 100%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.base-checkbox:has(input:disabled) .base-checkbox__label {
|
||||
|
||||
@@ -536,6 +536,23 @@ defineExpose({
|
||||
span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Extend the hit target to >=44x44 without affecting layout (WCAG 2.5.5).
|
||||
.base-checkbox__label {
|
||||
position: relative;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset-block-start: 50%;
|
||||
inset-inline-start: 50%;
|
||||
min-block-size: 44px;
|
||||
min-inline-size: 44px;
|
||||
block-size: 100%;
|
||||
inline-size: 100%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tasktext.done {
|
||||
|
||||
Reference in New Issue
Block a user