Skip to content

Commit 73f2be3

Browse files
authored
Merge pull request #610 from ProgressPlanner/filip/v18/todo-styling
Todo list tweaks
2 parents 2e36a0d + 7f01cda commit 73f2be3

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

assets/css/page-widgets/todo.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@
210210
font-size: var(--prpl-font-size-small);
211211

212212
&:hover {
213+
text-decoration: underline;
213214

214215
svg path {
215216
fill: var(--prpl-color-accent-red);
@@ -342,7 +343,12 @@
342343
padding: 0;
343344
margin: 0;
344345
cursor: pointer;
345-
text-decoration: underline;
346+
347+
&:hover,
348+
&:focus,
349+
&:active {
350+
text-decoration: underline;
351+
}
346352
}
347353
}
348354
}

assets/js/suggested-task.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ prplSuggestedTask = {
545545
if ( event.key === 'Enter' ) {
546546
event.preventDefault();
547547
event.stopPropagation();
548+
event.target.blur();
548549
return false;
549550
}
550551
},

classes/suggested-tasks/providers/class-user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function get_task_details( $task_data = [] ) {
8989
public function add_task_actions( $data = [], $actions = [] ) {
9090
$actions[] = [
9191
'priority' => 10,
92-
'html' => '<a class="prpl-tooltip-action-text" href="#" target="_self" onclick="this.closest(\'li.prpl-suggested-task\').querySelector(\'.prpl-task-title span\').focus();">' . \esc_html__( 'Edit', 'progress-planner' ) . '</a>',
92+
'html' => '<a class="prpl-tooltip-action-text" href="#" target="_self" onclick="event.preventDefault();this.closest(\'li.prpl-suggested-task\').querySelector(\'.prpl-task-title span\').focus();">' . \esc_html__( 'Edit', 'progress-planner' ) . '</a>',
9393
];
9494

9595
return $actions;

0 commit comments

Comments
 (0)