Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

widgets: Add classes to todo-widget div and span tags.

Karl Stolley7820c5e15e3a
diff --git a/web/styles/widgets.css b/web/styles/widgets.css
index 8689c5423af..a0741297400 100644
--- a/web/styles/widgets.css
+++ b/web/styles/widgets.css
@@ -37,7 +37,7 @@
vertical-align: top;
& input[type="checkbox"] {
- ~ span {
+ ~ .custom-checkbox {
height: 12px;
width: 12px;
border: 2px solid hsl(156deg 28% 70%);
@@ -48,7 +48,7 @@
cursor: pointer;
}
- &:checked ~ span {
+ &:checked ~ .custom-checkbox {
background-image: url("../images/checkbox-white.svg");
background-size: 75%;
background-position: 50% 50%;
@@ -57,16 +57,16 @@
border: 2px solid hsl(156deg 41% 40%);
}
- &:disabled ~ span {
+ &:disabled ~ .custom-checkbox {
opacity: 0.5;
cursor: not-allowed;
}
- &:hover ~ span {
+ &:hover ~ .custom-checkbox {
border-color: hsl(156deg 30% 50%);
}
- &:focus ~ span {
+ &:focus ~ .custom-checkbox {
outline-color: hsl(0deg 0% 100% / 0%);
}
}
diff --git a/web/templates/widgets/todo_widget_tasks.hbs b/web/templates/widgets/todo_widget_tasks.hbs
index fcdf13160a3..5f2a51f688c 100644
--- a/web/templates/widgets/todo_widget_tasks.hbs
+++ b/web/templates/widgets/todo_widget_tasks.hbs
@@ -1,11 +1,11 @@
{{#each all_tasks}}
<li>
<label class="checkbox">
- <div>
+ <div class="todo-checkbox">
<input type="checkbox" class="task" data-key="{{ key }}" {{#if completed}}checked{{/if}}/>
- <span></span>
+ <span class="custom-checkbox"></span>
</div>
- <div>
+ <div class="todo-task">
{{#if completed}}
<strike><strong>{{ task }}</strong>{{#if desc }}: {{ desc }}{{/if}}</strike>
{{else}}