-
Notifications
You must be signed in to change notification settings - Fork 509
Adding list-style css example. #547
Conversation
schalkneethling
left a comment
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.
One suggestion but, other than that, this looks great. Thanks @helmutgranda
|
|
||
| <div id="output" class="output large hidden"> | ||
| <section id="default-example" class="default-example"> | ||
| <ul id="example-element" class="transition-all"> |
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 suggest adding some custom styling for the #example-element here as described in https://github.com/mdn/interactive-examples/blob/master/CONTRIBUTING.md#styling-the-example
All that is need is a fuller width, and bumping the font-size so that the image in the last example is clearer:
.default-example {
font-size: 1.8rem;
}
#example-element {
width: 50%;
}
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.
@schalkneethling, updates applied. I used 80% for example-element's width instead of 50% to prevent wrapping specially with little-roman example.
|
@schalkneethling , I had some comments on this as well, so please don't merge until I have had a chance to write them down :). |
|
Thanks again for this contribution! I think this is also a tricky one, as it has quite complex syntax and it's challenging to choose just 6 representative values. I had a few comments. I'll use a separate comment for each one, which I hope will make them more usable. |
|
A couple of syntax variants that we could perhaps include, that are not in the current list:
Unfortunately that gives us 7 :( I'm really not sure which of these to omit. Perhaps |
|
It would be worth thinking of how to show the effect of Inside: Outside: Note though that this apparently does not work when you have 50% width on the ul. |
|
I think it would be nice to make the actual list more concrete and fun, and give it an intro line saying what it's a list of. Like:
Or something else, but you get the idea :). |
|
I don't think the Firefox icon looks good when it is scaled down this far. It would be worth trying to find a simpler SVG image (like a star or something), if you can find one that's public domain. |
wbamberg
left a comment
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.
@helmutgranda , thanks for the example! I did have a few comments, I hope they are helpful. Please feel free to let me know if you don't agree with them or are finding them hard to address :).
|
Thanks for the feedback @wbamberg, I have committed some changes based on your recommendations. |
schalkneethling
left a comment
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.
Couple of minor tweaks left over. Thanks so much @helmutgranda
|
|
||
| .output section li { | ||
| background: #f1f8ff; | ||
| } No newline at end of file |
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.
Nit: missing empty line at the end of the file.
| @@ -0,0 +1,61 @@ | |||
| <section id="example-choice-list" class="example-choice-list large" data-property="list-style"> | |||
|
|
|||
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.
Super nit: For consistency with other files, please remove this empty line.
| <span class="visually-hidden">Copy to Clipboard</span> | ||
| </button> | ||
| </div> | ||
|
|
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.
Super nit: For consistency with other files, please remove this empty line.
media/examples/rocket.svg
Outdated
| </g> | ||
| </g> | ||
| </g> | ||
| </svg> No newline at end of file |
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.
Nit: missing empty line at end of file. I would also suggest running this through https://jakearchibald.github.io/svgomg/
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.
Thanks! I didn't know about this tool.
|
I think this should be good to go now, all recommendations from @wbamberg and @schalkneethling in place. |
danielhickman
left a comment
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.
Your other PR had these removed but maybe these changes should be made too on this PR.
| @@ -0,0 +1,58 @@ | |||
| <section id="example-choice-list" class="example-choice-list large" data-property="list-style"> | |||
| <div class="example-choice" initial-choice="true"> | |||
| <pre><code id="example_one" class="language-css">list-style: square;</code></pre> | |||
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.
Looks like the id="example_one" boilerplate was missed.
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.
Well, in reality it was not missed. The boilerplate update was introduced after this PR ;) and I was not sure if the team was going to request updates to all PRs, either way I will be cleaning that up and submitting an update.
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.
Yeah, totally. Awesome!
schalkneethling
left a comment
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.
r+ from me, but I will wait for @wbamberg to review before merging. Thanks @helmutgranda
wbamberg
left a comment
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.
Looks great, @helmutgranda , thanks so much for making those changes.
One very minor nit, but I'll approve this anyway.
One question though: I love the rocket icon, I think it's a great choice. Can you confirm that it's in the public domain (e.g. https://creativecommons.org/share-your-work/public-domain/) and we are therefore allowed to use it? Thanks!
| </button> | ||
| </div> | ||
| </section> | ||
| <div id="output" class="output large hidden"> |
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.
nit: we should have an empty line between /section and div.
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.
Hey @wbamberg, I added the empty line.
In regards to the icon, I found it here:
https://openclipart.org/detail/266929/rocket
// updated URL for better source of rocket image.
Let me know if that works for this project or if I need to look somewhere else.
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.
That's perfect!
|
@danielhickman 's review is still outstanding, but I think the latest changes have removed the boilerplate, so I'm merging this :). |
|
Yeah the changes were made. Was there something I should've done or should do in the future to mark my review as "approved"? I only thought I had suggesting power since I don't have push access. |
I'm not sure, but the "Reviewers" section of this PR looks like: ...as if it wants your review approval. When I have requested changes I see something like this: ...and can hit "approve changes" (or "Review changes->Approve" in https://github.com/mdn/interactive-examples/pull/547/files). But I don't know if you can, too. In general I'd rather not merge stuff when someone else has outstanding comments, although your 'approval' could just be a comment saying "yes, that's fine" :). But in this case your comment seemed clear and I was pretty sure it had been addressed. |
|
Okay, that's helpful. I'll look out for those options in the future or leave a comment. Thanks. |
* upstream/master: Adding list-style css example. (mdn#547) Flex examples (mdn#558) Add column examples (mdn#549) Remove CSS example id attributes (mdn#556) Add various text examples (mdn#545) Add contribution item (mdn#552) Adds @helmutgranda as contributor (mdn#550) Adding border radius example with recommended changes. (mdn#546) Add `quotes` example (mdn#543)




Adding list-style css example to support ticket issue #484.