From 7d5ea38ea3527336f5d0cb9adce05a23d52e4c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 13 Dec 2019 10:14:06 +0100 Subject: [PATCH] render the "no specified" item in choices as italic --- CHANGELOG.md | 1 + Resources/public/sass/modules/_forms.scss | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index da3b1c469..970fa0fde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,3 +97,4 @@ Branch CRUD-Init ================ - create an api for rendering entities +- css: render the placeholder in expanded choice item as italic (the "no specified" choice") diff --git a/Resources/public/sass/modules/_forms.scss b/Resources/public/sass/modules/_forms.scss index 970d33a48..f2c533906 100644 --- a/Resources/public/sass/modules/_forms.scss +++ b/Resources/public/sass/modules/_forms.scss @@ -25,6 +25,11 @@ label { abbr { display: none; } + + // mark the label for empty placeholder + &[for$="_placeholder"] { + font-style: italic; + } } .inline-choice {