diff --git a/frappe/public/js/frappe/widgets/shortcut_widget.js b/frappe/public/js/frappe/widgets/shortcut_widget.js
index a8eead8a3d..7174ba0d2a 100644
--- a/frappe/public/js/frappe/widgets/shortcut_widget.js
+++ b/frappe/public/js/frappe/widgets/shortcut_widget.js
@@ -89,11 +89,10 @@ export default class ShortcutWidget extends Widget {
const label = get_label();
const buttons = $(`
${label}
`);
if (this.color) {
- buttons.css("background-color", this.color);
- buttons.css(
- "color",
- frappe.ui.color.get_contrast_color(this.color)
- );
+ let bg_color = count ? this.color: '#EEEEEE';
+ let text_color = count ? frappe.ui.color.get_contrast_color(bg_color): '#8D99A6';
+ buttons.css("background-color", bg_color);
+ buttons.css("color", text_color);
}
buttons.appendTo(this.action_area);