Closed
Bug 1014431
Opened 10 years ago
Closed 9 years ago
Improve visualization for code snippets
Categories
(Mozilla QA Graveyard :: One and Done, defect)
Mozilla QA Graveyard
One and Done
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: whimboo, Assigned: tessyjoseph1992)
References
()
Details
Attachments
(1 file)
411.45 KB,
image/png
|
Details |
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.
Comment 1•10 years ago
|
||
This will be resolved in the upcoming version, where users will be able to create tasks within the tool.
Comment 2•10 years ago
|
||
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.
Comment 3•10 years ago
|
||
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)
Reporter | ||
Comment 4•10 years ago
|
||
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)
Reporter | ||
Comment 6•10 years ago
|
||
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.
Comment 7•10 years ago
|
||
I've made you an Admin on staging for the future.
Comment 8•10 years ago
|
||
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.
Updated•9 years ago
|
Assignee: nobody → tessyjoseph1992
Updated•9 years ago
|
Status: NEW → ASSIGNED
Comment 9•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/oneanddone https://github.com/mozilla/oneanddone/commit/4ea5c2b91ebb7b5af327c2127ff4f523e44f32f1 Bug 1014431 - Improve visualization for code snippets
Updated•9 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 10•9 years ago
|
||
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/
Reporter | ||
Comment 11•9 years ago
|
||
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.
Comment 12•9 years ago
|
||
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)
Reporter | ||
Comment 13•9 years ago
|
||
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)
Comment 14•9 years ago
|
||
Comment 15•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla/oneanddone https://github.com/mozilla/oneanddone/commit/fbd0c333fd7bd46c302e8663b8dd4c2d80fec94d Bug 1014431 - Improve visualization for code snippets
Comment 16•9 years ago
|
||
The latest changes have been pushed to dev and stage. Henrik and Rebecca, can you verify?
Flags: needinfo?(rbillings)
Flags: needinfo?(hskupin)
Reporter | ||
Comment 17•9 years ago
|
||
Lovely at least from my side. Lesser eye hurting. ;) Thanks.
Flags: needinfo?(hskupin)
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•