-
+
{
this.isPasswordsEmpty && this.isSitesEmpty
?
@@ -208,4 +268,72 @@ class AboutPasswords extends React.Component {
}
}
+const itemPadding = '8px'
+
+const styles = StyleSheet.create({
+ passwordAction: {
+ cursor: 'pointer',
+ padding: itemPadding,
+
+ // lighten(@highlightBlue, 20%);
+ ':hover': {
+ backgroundColor: '#9cd4fe'
+ }
+ },
+ passwordsPage: {
+ margin: '20px'
+ },
+ passwordsPageContent: {
+ borderTop: `1px solid ${globalStyles.color.chromeBorderColor}`
+ },
+ passwordsList: {
+ paddingTop: '10px',
+ overflow: 'hidden'
+ },
+ passwordInstructions: {
+ borderTop: `1px solid ${globalStyles.color.chromeBorderColor}`,
+ paddingTop: '10px',
+ paddingBottom: '20px',
+ fontSize: '18px',
+ color: 'grey'
+ },
+ passwordsPageFooter: {
+ padding: '10px',
+ marginBottom: '20px'
+ },
+ passwordsPageFooterClear: {
+ color: 'grey',
+ cursor: 'pointer',
+ textDecoration: 'underline'
+ },
+
+ passwordsTh: {
+ padding: itemPadding,
+ textAlign: 'left'
+ },
+ passwordsTr: {
+ cursor: 'default',
+ overflow: 'hidden',
+ whiteSpace: 'nowrap',
+ padding: '12px',
+ WebkitUserSelect: 'none',
+
+ // lighten(@highlightBlue, 30%);
+ ':hover': {
+ backgroundColor: '#ceeaff'
+ }
+ },
+ isHead: {
+ ':hover': {
+ backgroundColor: 'inherit'
+ }
+ },
+ passwordsTd: {
+ padding: itemPadding
+ },
+ isAction: {
+ padding: 0
+ }
+})
+
module.exports =
diff --git a/less/about/passwords.less b/less/about/passwords.less
deleted file mode 100644
index 8f9e6f6e1e6..00000000000
--- a/less/about/passwords.less
+++ /dev/null
@@ -1,72 +0,0 @@
-@import "./common.less";
-
-.passwordsPage {
- margin: 20px;
-
- .passwordsPageContent {
- border-top: 1px solid @chromeBorderColor;
-
- .passwordsList {
- padding-top: 10px;
- overflow: hidden;
- }
- }
-}
-
-.passwordInstructions {
- border-top: 1px solid @chromeBorderColor;
- padding-top: 10px;
- padding-bottom: 20px;
- font-size: 18px;
- color: grey;
-}
-
-th {
- padding: 8px;
- text-align: left;
-}
-
-tr {
- cursor: default;
- overflow: hidden;
- white-space: nowrap;
-
- padding: 12px;
- -webkit-user-select: none;
-
- .passwordItem {
- display: flex;
- }
-
- &:hover :not(th) {
- background-color: lighten(@highlightBlue, 30%);
- }
-}
-
-td:not(.passwordActions) {
- padding-right: 8px;
- padding-left: 8px;
-}
-
-.passwordNotifications {
- color: @braveOrange;
- font-weight: bold;
-}
-
-.passwordAction {
- cursor: pointer;
- padding: 8px;
- &:hover {
- background-color: lighten(@highlightBlue, 20%);
- }
-}
-
-.passwordsPageFooter {
- padding: 10px;
- margin-bottom: 20px;
- span {
- color: grey;
- cursor: pointer;
- text-decoration: underline;
- }
-}
diff --git a/test/components/notificationBarTest.js b/test/components/notificationBarTest.js
index 665ad26089c..da217957e6a 100644
--- a/test/components/notificationBarTest.js
+++ b/test/components/notificationBarTest.js
@@ -116,7 +116,7 @@ describe('notificationBar', function () {
}).click('button=Yes')
.tabByIndex(0)
.loadUrl('about:passwords')
- .waitForExist('tr.passwordItem')
+ .waitForExist('[data-test-id="passwordItem"]')
.windowByUrl(Brave.browserWindowUrl)
.tabByIndex(0)
.loadUrl(this.loginUrl4)