-
Notifications
You must be signed in to change notification settings - Fork 970
Conversation
js/components/siteInfo.js
Outdated
position: 'absolute' | ||
}, | ||
secureIcon__extendedValidation: { | ||
color: 'green' |
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.
Please change this to HEX
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.
js/components/siteInfo.js
Outdated
[css(styles.secureIcon__fa)]: true | ||
})} /> | ||
<span className={css(styles.secureIcon__label)} | ||
data-test-id='insecureconnection' |
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.
change to insecureConnection
js/components/siteInfo.js
Outdated
<div className={css(styles.flexJustifyEnd, styles.viewCertificateButton__wrapper)}> | ||
<Button l10nId='viewCertificate' | ||
className='primaryButton' | ||
data-test-id='viewCertificate' |
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.
data-test-id
-> testId
js/components/siteInfo.js
Outdated
<div className={css(styles.flexJustifyEnd, styles.viewCertificateButton__wrapper)}> | ||
<Button l10nId='allowRunInsecureContent' | ||
className='whiteButton' | ||
data-test-id='allowRunInsecureContentButton' |
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.
data-test-id
-> testId
js/components/siteInfo.js
Outdated
/> | ||
<Button l10nId='dismissAllowRunInsecureContent' | ||
className='primaryButton' | ||
data-test-id='dismissAllowRunInsecureContentButton' |
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.
data-test-id
-> testId
js/components/siteInfo.js
Outdated
<div className={css(styles.flexJustifyEnd, styles.viewCertificateButton__wrapper)}> | ||
<Button l10nId='dismissDenyRunInsecureContent' | ||
className='whiteButton' | ||
data-test-id='dismissDenyRunInsecureContentButton' |
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.
data-test-id
-> testId
js/components/siteInfo.js
Outdated
/> | ||
<Button l10nId='denyRunInsecureContent' | ||
className='primaryButton' | ||
data-test-id='denyRunInsecureContentButton' |
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.
data-test-id
-> testId
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.
Just needs to update per @NejcZdovc feedback since some tests are failing due to that. Otherwise LGTM.
Closes #7949 Also modify messageBox.js, which was introduced with #7107 - Introduced globalStyles.spacing.dialogInsideMargin As the marginTop of title and marginBottom of buttons on messageBox.js had been set to 0.5em, I removed and added them to padding of flyoutDialog. The vaule was calculated this way: calc(10px + 0.5rem) = 18px. Also I applied it to the elements inside messageBox.js - Aligned the buttons to the right (same as messageBox.js) - Introduced siteInfo__wrapperLarge As the buttons on mixed content info dialog are so huge that sometimes they are wrapped, epecially on foreign language like Japanese. This is a temporary workaround to avoid it. - Moved 'denyRunInsecureContent' button to the right to improve UX - Updated automated test code Auditors: Test Plan: 1. Open https://apple.com 2. Click the lock icon on the URL bar 3. Make sure the title and description are aligned 4. Make sure the button is aligned to the right 5. Open http://apple.com 6. Click the unlock icon on the URL bar 7. Make sure the title and description are aligned 8. Open https://mixed-script.badssl.com 9. Click the lock icon 10. Make sure the buttons are aligned to the right and they are not wrapped 11. Click "Load Unsafe Script" 12. Click the unlock icon on the URL bar 13. Click "Stop Loading Unsafe Script" 14. Visit http://jsbin.com/fiyojusahu/edit?html,output 15. Make sure the elements are aligned well 16. Visit http://jsbin.com/sadunogefu/edit?html,output 17. Make sure the switch next to "Prevent this page from creating additional dialogs" is aligned with the body text
@luixxiul can we merge this, because I need this PR to start working on something new. I noticed that you changed base branch, so not sure if I can merge it or not |
OK, I'm going to change the base branch as this does not depend on another PR of mine. |
@NejcZdovc Done! If LGTM, please ping me, thanks! |
@luixxiul LGTM, so you can merge it |
Closes #7949
Also modify messageBox.js, which was introduced with #7107
Introduced globalStyles.spacing.dialogInsideMargin
As the marginTop of title and marginBottom of buttons on messageBox.js had been set to 0.5em, I removed and added them to padding of flyoutDialog. The vaule was calculated this way:
calc(10px + 0.5rem) = 18px
. Also I applied it to the elements inside messageBox.jsAligned the buttons to the right (same as messageBox.js)
Introduced siteInfo__wrapper__large
As the buttons on mixed content info dialog are so huge that sometimes they are wrapped, epecially on foreign language like Japanese. This is a temporary workaround to avoid it.
Moved 'denyRunInsecureContent' button to the right to improve UX
Updated automated test code
Auditors:
Test Plan:
git rebase -i
to squash commits (if needed).Test Plan: