From c035acce6c3e4bf53dddd85bd57dfd2ed241b68f Mon Sep 17 00:00:00 2001 From: YJDave Date: Thu, 8 Mar 2018 23:43:40 +0530 Subject: [PATCH] pills: Show data-no-recipients text only if no recipients selected. Currently, we shows data-no-recipients placeholder text even if there are recipients selected. It's not visible cause it's value is override by data-some-recipients helper text in case if there are recipients selected. Show data-no-recipients placeholder text only when `input` element is first child of `pill-container`, which means there are no `pills` selected by user yet. --- static/styles/input_pill.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/styles/input_pill.css b/static/styles/input_pill.css index 4d8184445b..94172a5af7 100644 --- a/static/styles/input_pill.css +++ b/static/styles/input_pill.css @@ -91,7 +91,7 @@ height: 20px; } -.pm_recipient .pill-container .input:empty::before { +.pm_recipient .pill-container .input:first-child:empty::before { content: attr(data-no-recipients-text); opacity: 0.5; }