#39892 closed enhancement (fixed)
Default value in Additional CSS
Reported by: | denisco | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Customize | Keywords: | has-patch |
Focuses: | ui | Cc: |
Description
In support forum, I was faced with the fact that users do not understand that default value is a comment and try to paste the code into it. Maybe we need to return placheholder attribute without comment tags or implement in some other way.
Attachments (2)
Change History (21)
#3
follow-ups:
↓ 4
↓ 5
@
8 years ago
Hm I'm a bit surprised to see users who want to use CSS and don't know what a CSS comment is. Maybe this is one of the dangers to face when opening advanced editing abilities to non-technical users. I'd suggest to just change the text, which is a bit misleading. Current text:
/* You can add your own CSS here. Click the help icon above to learn more. */
Proposed new text (or something similar):
/* You can add your own CSS in place of this comment. Click the help icon above to learn more. */
given this real-world user feedback
How many users? :) any data?
Alternatively, considering the original issue raised in #38685?
I was staring at the comment used in the placeholder and trying to use the keyboard to select/cancel what initially appeared to me being text... was wondering why the arrow keys weren't working at all. Maybe it's just me being a bit slow :) Since it's formatted like an inline comment /* */ it looks like actual code that can be selected. Maybe potentially confusing for users, I'd consider to remove the /* */.
I'd consider to make it a placeholder only if removing the slashes and stars /* */
.
#4
in reply to:
↑ 3
@
8 years ago
to afercia
Hm I'm a bit surprised to see users who want to use CSS and don't know what a CSS comment is.
Many users do not have sufficient knowledge and just use snippets from the replies of support forum or from the Internet tutorials.
How many users? :) any data?
Additional CSS appeared recently and many users on forums continue to recommend the use child theme for styling customization. Therefore, user feedback of Additional CSS is sufficiently small.
But for us such way to insert the code also was a surprise, and it would be interesting hear opinions of this issue :).
#5
in reply to:
↑ 3
;
follow-up:
↓ 6
@
8 years ago
- Milestone changed from Awaiting Review to 4.8
Replying to afercia:
I'd consider to make it a placeholder only if removing the slashes and stars
/* */
.
That's what I'd like to do here. The text is essentially a placeholder and should be treated as such, I don't see why it should be a default value. There's no need to select it, and the /* */
symbols just create unnecessary confusion.
As noted above, not everyone is familiar enough with CSS to know all the syntax details, most users just paste snippets in there that they find on the forums.
#6
in reply to:
↑ 5
@
8 years ago
Replying to SergeyBiryukov:
That's what I'd like to do here. The text is essentially a placeholder and should be treated as such, I don't see why it should be a default value. There's no need to select it, and the
/* */
symbols just create unnecessary confusion.
As noted above, not everyone is familiar enough with CSS to know all the syntax details, most users just paste snippets in there that they find on the forums.
The only reason I can see for having the text as a CSS comment in the field would be for user education (providing an example for users of CSS comments). However, CSS doesn't really need inline comments unless one has a very complex stylesheet, which isn't typical for the Customizer.
Since most users won't know what it means, and don't NEED to know what it means, it just adds unnecessary confusion to the user, as mentioned above. I agree that we should turn it into placeholder
text, and remove the /* */
.
#7
@
8 years ago
@Kelderic
I am all for making it as simple and common sense as possible for end users.
#8
@
7 years ago
- Keywords needs-patch added
- Milestone changed from 4.8 to 4.8.1
Since this still needs a patch and the short timeline remaining on 4.8, I'm going to punt this to 4.8.1. If a patch is ready and can get tested next week, then we can pull this back into 4.8.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
#13
@
7 years ago
@afercia @melchoyce with the updated section description help text coming with Better Code Editing, should the placeholder text just be removed entirely? Since the help text would expand automatically when the custom CSS has the default value supplied:
See https://github.com/WordPress/better-code-editing/pull/84
#17
@
7 years ago
- Owner set to westonruter
- Resolution set to fixed
- Status changed from new to closed
In 41376:
Related: #38685, #38493.