-
Notifications
You must be signed in to change notification settings - Fork 971
Conversation
d0139c3
to
88f286b
Compare
13e5cee
to
0cc88ed
Compare
d4428e0
to
da64db6
Compare
320d02e
to
4e8d576
Compare
|
||
describe('APP_ON_CAPTCHA_RESPONSE', function () { | ||
|
||
}) |
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.
Do we need tests on these two?
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.
lol I added them but then forgot to actually add them 😄 thx
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.
tests added
4e8d576
to
1041f91
Compare
const promotionStatuses = require('../../../../common/constants/promotionStatuses') | ||
|
||
// Styles | ||
const cx = require('../../../../../js/lib/classSet') |
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.
Were we deprecating the use of className cx()? It's implied from the styling guidelines but I don't know for sure.
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.
not sure, this is what it was used so far
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.
removed
[css(styles.enabledContent__overlay)]: true, | ||
[css(styles.enabledContent__captcha)]: true, | ||
'enabledContent__overlay': 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.
can we just use [css(styles.enabledContent__overlay, styles.enabledContent__captcha)]
?
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.
done
@@ -632,6 +644,23 @@ const styles = StyleSheet.create({ | |||
} | |||
}, | |||
|
|||
enabledContent__captcha: { | |||
// TODO we need to make sure that text is not in DND zone |
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.
These don't look like they're used here. They're defined in the captcha component as well.
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.
fixed
1041f91
to
1d5794e
Compare
padding: '20px' | ||
}, | ||
|
||
enabledContent__captcha__drop: { |
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 ^
return <div | ||
className={cx({ | ||
[css(styles.enabledContent__overlay, styles.enabledContent__captcha)]: true, | ||
'enabledContent__overlay': 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.
I meant:
is styles.enabledContent__overlay
and the enabledContent__overlay
below it reference the same styling? If so, then just:
className={css(styles.enabledContent__overlay, styles.enabledContent__captcha)}
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.
fixed
Resolves brave#14188 Auditors: Test Plan:
Really awesome. There were a couple times where I had dragged over the outline but was still told to 'try again'. Should we implement an onhover over the outline coordinates [and maybe bolden the outline on hover] to let the user know when they are dropping on the right answer? (I'm assuming the coordinate answer is sent to the client) |
1d5794e
to
fa6124b
Compare
@jasonrsadler we don't know the coordinates, we just send dropped coordinates to the server and server then decides if it's ok or not |
Had a feeling that's how it was working. Just checking. |
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.
++ 🥇
Resolves #14188
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests