New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify btn-primary instructions #12329
Clarify btn-primary instructions #12329
Conversation
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.
Some grammatical changes.
"The <code>btn-primary</code> class is the main color you'll use in your app. It is useful for highlighting actions you want your user to take.", | ||
"Add Bootstrap's <code>btn-primary</code> class to your button.", | ||
"Note that this button will still need the <code>btn</code> and <code>btn-block</code> classes." | ||
"The <code>btn-primary</code> class styles app elements you apply it to in order to indicate the primary action on a page. It essentially highlights actions you want your user to take.", |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
df55f0d
to
33c2d81
Compare
Ugh, sorry for taking so much longer to do this 😞 |
Well, I think that there should be a
But, I don't want to trouble you too much... 😅! Thanks for the pull request. |
@erictleung please have a look, and we can merge. |
ef45690
to
2f4f878
Compare
@raisedadead There's no such thing as troubling me too much 😛 I added "the" |
"assert($(\"button\").hasClass(\"btn-primary\"), 'message: Your button should have the class <code>btn-primary</code>.');", | ||
"assert($(\"button\").hasClass(\"btn-block\") && $(\"button\").hasClass(\"btn\"), 'message: Your button should still have the <code>btn</code> and <code>btn-block</code> classes.');", | ||
"assert($(\"button\").first().hasClass(\"btn-primary\"), 'message: Your <code>Like</code> button should have the class <code>btn-primary</code>.');", | ||
"assert($(\"button\").first().hasClass(\"btn-block\") && $(\"button\").hasClass(\"btn\"), 'message: Your <code>Like</code> button should still have the <code>btn</code> and <code>btn-block</code> classes.');", |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@raisedadead @systimotic LTGM! I just have that one comment on a line. It's not that big of a deal, but I noticed it was missed. Otherwise, everything is good to me! 🎉 |
2f4f878
to
de5a243
Compare
@erictleung Whoops, I missed that one! Yeah, it's very unlikely that a camper will leave one of the classes on the button and remove the other, but the tests should work no matter what the camper does. I updated the PR. |
@raisedadead @erictleung Looks like this is ready to be merged! |
✨ ✨ LGTM. ✨ ✨Thanks @systimotic ! |
Pre-Submission Checklist
staging
branch of FreeCodeCamp.fix/
,feature/
, ortranslate/
(e.g.fix/signin-issue
)npm test
. Usegit commit --amend
to amend any fixes.Type of Change
Checklist:
Description
This PR updates the instructions as suggested by @erictleung in #8417. I found this stale issue on one of my random issue dives and thought I should just submit a PR so we can close another old, stale issue.
The tests look for the first button they can find. While it's not perfect, it works fine.