Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix CSS style conflicts (#541)

Leendert de Borst45a5d7fb2023
diff --git a/browser-extensions/chrome/src/contentScript/Popup.ts b/browser-extensions/chrome/src/contentScript/Popup.ts
index cac28c493..900b7a4d1 100644
--- a/browser-extensions/chrome/src/contentScript/Popup.ts
+++ b/browser-extensions/chrome/src/contentScript/Popup.ts
@@ -200,6 +200,9 @@ export function createAutofillPopup(input: HTMLInputElement, credentials: Creden
gap: 4px;
transition: background-color 0.2s ease;
line-height: 1;
+ text-transform: none;
+ font-weight: 500;
+ margin: 0;
`;
createButton.innerHTML = `
@@ -302,6 +305,9 @@ export function createAutofillPopup(input: HTMLInputElement, credentials: Creden
border: 1px solid ${isDarkMode() ? '#4b5563' : '#e5e7eb'};
outline: none;
line-height: 1;
+ box-shadow: none;
+ margin: 0;
+ height: auto;
`;
// Add focus styles
@@ -383,6 +389,9 @@ export function createAutofillPopup(input: HTMLInputElement, credentials: Creden
align-items: center;
justify-content: center;
transition: all 0.2s ease;
+ text-transform: none;
+ font-weight: 500;
+ margin: 0;
`;
closeButton.innerHTML = `
@@ -813,6 +822,10 @@ export async function createEditNamePopup(defaultName: string): Promise<string |
cursor: pointer;
font-size: 14px;
transition: all 0.2s ease;
+ line-height: 1;
+ text-transform: none;
+ font-weight: 500;
+ margin: 0;
">Cancel</button>
<button id="save-btn" style="
padding: 8px 16px;
@@ -823,6 +836,10 @@ export async function createEditNamePopup(defaultName: string): Promise<string |
cursor: pointer;
font-size: 14px;
transition: all 0.2s ease;
+ line-height: 1;
+ text-transform: none;
+ font-weight: 500;
+ margin: 0;
">Save</button>
</div>
`;
diff --git a/docs/misc/dev/browser-extensions.md b/docs/misc/dev/browser-extensions.md
index 8b6306235..95849da76 100644
--- a/docs/misc/dev/browser-extensions.md
+++ b/docs/misc/dev/browser-extensions.md
@@ -33,4 +33,23 @@ npm run build
4. The extension should now be loaded and ready to use.
### Auto-build on changes
-When developing the extension, you can use the `npm run watch` command. This will automatically build the extension when you make changes to the code which will then automatically reload the extension in Chrome. This means you can make changes and see the results immediately.
+When developing the extension, you can use the `npm run dev` command. This will automatically build the extension when you make changes to the code which will then automatically reload the extension in Chrome. This means you can make changes and see the results immediately.
+
+## Automatic tests
+The extension has a suite of automatic tests that are run on every pull request. These tests are located in the `__tests__` directories scattered throughout the browser extension codebase.
+
+### Run the tests
+To run the tests locally, you can use the `npm run test` command. This will run all tests.
+
+```bash
+npm run test
+```
+
+## Manual tests
+In order to test for client side issues, here is a list of public websites that have caused issues in the past and can be used to test whether the extension is (still) working correctly.
+
+### Websites that have caused issues
+| Website | Reason |
+| --- | --- |
+| https://www.paprika-shopping.nl/nieuwsbrief/newsletter-register-landing.html | Popup CSS style conflicts |
+| https://bloshing.com/inschrijven-nieuwsbrief | Popup CSS style conflicts |