-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make input placeholder appear lighter #207
Conversation
624de7e
to
0277e0f
Compare
I almost can't read the text with |
I see that plone-gray-lighter is used mainly for background and border. Please don't use it for text, this is too light. |
@vincentfretin I'd use the opacity version. May even set it to 0.6 instead 0.5. |
Placeholder text must still satisfy a11y contrast rules, which this doesn't. |
See |
You're right |
The text in a document is using |
FYI, I almost don't see a different on my desktop screen between If you use
and this matches the current color for: |
@@ -181,7 +181,7 @@ | |||
//** Border color for inputs on focus | |||
@plone-input-border-focus: @plone-portlet-list-bullet; | |||
//** Placeholder text color | |||
@plone-input-color-placeholder: @plone-gray-light; | |||
@plone-input-color-placeholder: @plone-gray-lighter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would revert this back to @plone-gray-light
and use @plone-input-color: @plone-gray-dark;
above.
16cdf2d
to
797861e
Compare
Can you update the comment line 6 for
The grunt command generate wrong urls in the sourcemap if you over the css rule in chrome inspector. |
797861e
to
44c0b30
Compare
Awesome finding! |
44c0b30
to
8c4b4ac
Compare
Cool you fixed the grunt task as well. |
Your sourcemap has indeed the correct path now. And I see it includes the source code. This is apparently not necessary because we can access the source less files already. With |
Otherwise the changes looks good. You can merge. |
Ok I see that the file CONTRIBUTING.rst is the same in all packages, so we probably don't want to put additional stuff there if next time we update this file in all repositories. |
The current placeholder styles make them look like normal input:
This adds an opacity of 0.5 to them to distinguish them better from normal input:
This uses @plone-gray-lighter color instead of opacity (current version of this PR):
@polyester please comment if you see any accessibility issues here.
@agitator after discussion of the implications we should forward port that to the master branch.
Setting input darker, keeping placeholder as-is: