[FIX] web: o_quick_assign same color as the clock

As the Activity button (clock icon) is the same kind of action
it make sense to apply the text-muted on the quick assign.

To make the hover clearer we apply a text-dark on hover using the
btn-link + contextual classes function. We apply the same to the
`subtask_list_button` and milestones for consistency.

task-3382159

closes odoo/odoo#134196

X-original-commit: 4b8b6e2155eca66652b4a57dfff27b0e81d62573
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
This commit is contained in:
mano-odoo
2023-09-05 07:19:47 +00:00
parent 95eece118c
commit 0cc569004d
5 changed files with 7 additions and 5 deletions
@@ -46,7 +46,7 @@ export class ActivityButton extends Component {
classes.push(this.props.record.data.activity_type_icon);
break;
}
classes.push("fa-clock-o");
classes.push("fa-clock-o btn-link text-dark");
break;
}
return classes.join(" ");
@@ -479,7 +479,8 @@
</div>
</a>
<a groups='project.group_project_milestone' t-if="record.allow_milestones and record.allow_milestones.raw_value and record.milestone_count.value &gt; 0"
class="o_kanban_inline_block text-muted small"
class="o_kanban_inline_block btn-link text-dark small"
role="button"
name="action_get_list_view"
type="object"
t-attf-title="#{record.milestone_count_reached.value} Milestones reached out of #{record.milestone_count.value}"
+2 -1
View File
@@ -599,7 +599,8 @@
<t t-if="record.project_id.raw_value and record.subtask_count.raw_value">
<a t-if="record.project_id.raw_value and record.subtask_count.raw_value and record.subtask_count.value &gt; record.closed_subtask_count.value"
t-attf-title="{{ record.closed_subtask_count.value }} sub-tasks closed out of {{ record.subtask_count.value }}"
class="subtask_list_button text-muted">
class="subtask_list_button btn-link text-dark"
role="button">
<span class="fa fa-check-square-o me-1"/>
<t t-out="record.closed_subtask_count.value + '/' + record.subtask_count.value"/>
</a>
@@ -29,7 +29,7 @@
<xpath expr="//t[@t-foreach='visibleTags']" position="before">
<t t-if="canDisplayQuickAssignAvatar">
<a t-on-click.stop.prevent="openPopover" tabIndex="-1" href="#" title="Assign"
aria-label="Assign" class="fa fa-user-plus o_quick_assign o_m2m_avatar d-flex align-items-center"/>
aria-label="Assign" class="o_quick_assign fa fa-user-plus o_m2m_avatar btn-link d-flex align-items-center text-dark" role="button"/>
</t>
</xpath>
<xpath expr="//span[hasclass('o_m2m_avatar_empty')]" position="attributes">
@@ -21,7 +21,7 @@
<xpath expr="//span[hasclass('o_m2o_avatar_empty')]" position="replace">
<t t-if="props.record.data[props.name] === false and props.isEditable">
<a t-on-click.stop.prevent="openPopover" tabIndex="-1" href="#" title="Assign"
aria-label="Assign" class="fa fa-user-plus o_quick_assign d-flex align-items-center"/>
aria-label="Assign" class="o_quick_assign fa fa-user-plus btn-link d-flex align-items-center text-dark" role="button"/>
</t>
</xpath>
</t>