Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Conversation

@benji1304
Copy link
Contributor

As per this issue
#563

@welcome
Copy link

welcome bot commented Feb 9, 2018

💖 Thanks for opening this pull request! 💖
Here is a list of things that will help get it across the finish line: - If this is a new or updated CSS interactive example, please ensure that you followed the CSS styleguide - If this is a new or updated JavaScript interactive example, please ensure that you followed the JavaScript styleguide - If your changes affects any of the steps in our contribution docs, please also make the relevant changes there.

@benji1304
Copy link
Contributor Author

c3b37aa for issue #566 as discussed.

Hope this is getting better.

Copy link
Contributor

@wbamberg wbamberg left a 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">
Copy link
Contributor

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": {
Copy link
Contributor

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.

@benji1304
Copy link
Contributor Author

Sure, sounds good. I'll take a look asap and update.

@wbamberg
Copy link
Contributor

wbamberg commented Feb 9, 2018

Sorry, I didn't see you had the updates for color as well. I'll review that now.

@wbamberg
Copy link
Contributor

wbamberg commented Feb 9, 2018

A couple of minor comments on color, neither of which you introduced, so it seems a little unfair to complain about :)

  • coding style is to omit the leading 0 before a period, so color: hsla(30, 100%, 50%, .3); not color: hsla(30, 100%, 50%, 0.3);. We don't AFAIK have this documented anywhere :(

  • the rgb value looks almost black, you might want to consider something a bit more obviously different.

Also I just realised that opacity has a name-collision with the opacity() function, but this is not your problem :).

@benji1304
Copy link
Contributor Author

@wbamberg new PR on here with the fixes for color and font-size

Copy link
Contributor

@wbamberg wbamberg left a 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>
Copy link
Contributor

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": {
Copy link
Contributor

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).

@benji1304
Copy link
Contributor Author

550d515 with updates

Copy link
Contributor

@wbamberg wbamberg left a 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!

@wbamberg wbamberg merged commit a0bba7f into mdn:master Feb 13, 2018
@welcome
Copy link

welcome bot commented Feb 13, 2018

Congrats on merging your first pull request! 🎉🎉🎉

@wbamberg
Copy link
Contributor

I've updated the MDN pages:
https://developer.mozilla.org/en-US/docs/Web/CSS/color
https://developer.mozilla.org/en-US/docs/Web/CSS/font-size
:)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants