-
Notifications
You must be signed in to change notification settings - Fork 815
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
Simple payments/show messages response #7495
Changes from 12 commits
37fddc3
b233443
26e96ea
448d28f
cbdb5fe
2246be7
93edd0b
ee85be4
3dfa135
3fa3603
04a0822
fb41466
4966db8
d839c7a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
body .jetpack-simple-payments__wrapper div.jetpack-simple-payments__purchase-message { | ||
display: none; | ||
} | ||
|
||
body .jetpack-simple-payments__wrapper div.jetpack-simple-payments__purchase-message, | ||
body .jetpack-simple-payments__wrapper div.jetpack-simple-payments__purchase-message a { | ||
color: #fff; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we move only this color rule to a different block with a selector with a higher specificity so that it remains in white in most themes?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding this now There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just fyi I've changed to body .jetpack-simple-payments__wrapper div.jetpack-simple-payments__purchase-message {
color: #fff;
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did it work? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
padding: 1em; | ||
} | ||
|
||
body .jetpack-simple-payments__wrapper div.jetpack-simple-payments__purchase-message.show { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need to add specificities to others. We only need the bloated selector for the
The rest should just be fine as they were. Are we displaying links in the message? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Let's rollback in #7500. Are we displaying links in the message? we were adding the emial address as a link. Let's cleaning it as well. |
||
display: block; | ||
} | ||
|
||
body .jetpack-simple-payments__wrapper div.jetpack-simple-payments__purchase-message.success { | ||
background-color: #4ab866; | ||
} | ||
|
||
body .jetpack-simple-payments__wrapper div.jetpack-simple-payments__purchase-message.error { | ||
background-color: #d94f4f; | ||
} |
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.
why are we using
$
to define a var in JavaScript?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.
It's jQuery convention. If something is jQuery object, we use
$
in the var name to state that. It helps with differentiating it from standard html element object so you can expect it to have jQuery capabilities.