Skip to content

Commit 990fb8e

Browse files
committed
minor #357 [UXSite] Improve color contrast between form inputs and placeholders (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [UXSite] Improve color contrast between form inputs and placeholders | Q | A | ------------- | --- | Bug fix? | yes/no | New feature? | no | License | MIT The contrast between input values and/or placeholder texts was a bit light (exemple: https://ux.symfony.com/live-component/demos/form-collection-type) Before : <img width="1170" alt="before" src="https://user-images.githubusercontent.com/1359581/174460388-7f17e214-ebd7-4354-8f9e-1c07b95c246b.png"> After : <img width="764" alt="after" src="https://user-images.githubusercontent.com/1359581/174460391-0c184305-8e29-43d8-9508-d28602a4ee0f.png"> Commits ------- d605c99 [UXSite] Improve color contrast between form inputs and placeholders
2 parents 0699d44 + d605c99 commit 990fb8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ux.symfony.com/assets/styles/_type.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,7 @@ h4.ubuntu {
220220
box-shadow: 2px 3px 9px 4px rgb(0 0 0 / 12%);
221221
}
222222

223+
.form-control::placeholder {
224+
color: $n-300;
225+
font-weight: lighter;
226+
}

0 commit comments

Comments
 (0)