-
Notifications
You must be signed in to change notification settings - Fork 509
add css font-size examples #567
Conversation
|
💖 Thanks for opening this pull request! 💖 |
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.
Thanks for your contribution @benji1304 !
Looks good, just a couple of minor comments.
Also, all the example sizes are on the small side - maybe make 1em->1.2em?
| @@ -0,0 +1,43 @@ | |||
| <section id="example-choice-list" class="example-choice-list" data-property="font-size"> | |||
| <div class="example-choice" initial-choice="true"> | |||
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.
You should only have (at most) one initial-choice="true" value - it should select the choice that's selected by default. If you omit it, you just get the first choice selected by default, and that's probably fine in this example.
| "title": "CSS Demo: font-weight", | ||
| "type": "css" | ||
| }, | ||
| "font-size": { |
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.
This should be camel-cased - fontSize - and appear in alphabetical order in meta.json.
|
Sure, sounds good. I'll take a look asap and update. |
|
Sorry, I didn't see you had the updates for |
|
A couple of minor comments on
Also I just realised that |
|
@wbamberg new PR on here with the fixes for color and font-size |
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.
Thanks for the updates @benji1304 ! Just a couple more comments.
| </div> | ||
|
|
||
| <div class="example-choice" initial-choice="true"> | ||
| <div class="example-choice"></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.
You have a rogue </div> here that's breaking the layout...
| "type": "css" | ||
| }, | ||
| "font-size": { | ||
| "fontSize": { |
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.
This should appear in alphabetical order (after fontFamily).
|
550d515 with updates |
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, @benji1304. Thanks for your contribution!
|
Congrats on merging your first pull request! 🎉🎉🎉 |
|
I've updated the MDN pages: |
As per this issue
#563