Closed Bug 1014431 Opened 10 years ago Closed 9 years ago

Improve visualization for code snippets

Categories

(Mozilla QA Graveyard :: One and Done, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: whimboo, Assigned: tessyjoseph1992)

References

()

Details

Attachments

(1 file)

Right now code snippets are very hard to identify in a task. For example see https://oneanddone.mozilla.org/en-US/tasks/30/.

It would be great to get a better styling for them. Maybe a lighter background an border, which emphasizes it.
This will be resolved in the upcoming version, where users will be able to create tasks within the tool.
As per my comment on bug 1014429, nothing about the instructions editor is changing with the advent of moving task creation inside the tool. If there are issues and concerns with the current way of inputting instructions and displaying them to a user, that should be addressed in a separate bug. It might make sense to group all such issues together and have a discussion about what we might do to address them.
Please review the new task creation and view process- it's up on staging. Tasks are still entered in the same manner so your original issue may remain. I'm not sure how we would change the background for one piece of text within markup.
Flags: needinfo?(hskupin)
I don't know where staging lives, so I would need more information here. Otherwise I will have to test it when its live on production.
Flags: needinfo?(hskupin)
Thanks Rebecca, but I can't actually do anything here as long as I'm not an admin and can create tasks myself. I haven't found any existing task, which includes a code snippet.
I've made you an Admin on staging for the future.
The rendering of the instructions is done via the `markdown` package. It might be possible to customize the package's behaviour, or perhaps this could also be accomplished via CSS.
Assignee: nobody → tessyjoseph1992
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Verified on staging that code snippets now display with a yellow background making them a lot easier to distinguish from the rest of the text. Ex: https://oneanddone.allizom.org/en-US/tasks/107/
Indeed, but personally I feel the color doesn't really match the color schema of One and Done. Maybe a lighter blue color as what we have on the front page might have been a better choice? Or making it a box with a slightly different background as how code snippets are shown on Github like https://github.com/mozilla/mozmill#installation.
Thanks for the feedback, Henrik. Rather than going back and forth between versions that you may or may not like, would you care to contribute some CSS that will make it look exactly the way you think it should look?
Flags: needinfo?(hskupin)
Maybe the following?

pre, code {
    background-color: #F3F1EA;
    color: #666;
    font-size: 14px;
    border: 1px solid #666;
    padding: 1px 4px;
}

It's lesser loud and trendy and IMHO fits better into the design. Maybe a nearly white background might also be fine.
Flags: needinfo?(hskupin)
The latest changes have been pushed to dev and stage. Henrik and Rebecca, can you verify?
Flags: needinfo?(rbillings)
Flags: needinfo?(hskupin)
Lovely at least from my side. Lesser eye hurting. ;) Thanks.
Flags: needinfo?(hskupin)
Looks good on staging
Flags: needinfo?(rbillings)
Verified on prod
Status: RESOLVED → VERIFIED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: