Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed Sep 26, 2024
1 parent 0925805 commit 4488d10
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
13 changes: 8 additions & 5 deletions extension-manifest-v3/src/pages/onboarding/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ export default {
</div>
</template>
`.css`
@media (prefers-color-scheme: dark) {
#bg { display: none; }
:host { background: var(--ui-color-gray-100); }
}
#bg { transform: translateX(-50%); }
#c-1 {
Expand All @@ -52,5 +47,13 @@ export default {
header {
color: var(--ui-color-primary-500);
}
@media (prefers-color-scheme: dark) {
:host {
background: var(--ui-color-gray-100);
}
#bg { display: none; }
}
`,
};
2 changes: 1 addition & 1 deletion extension-manifest-v3/src/pages/onboarding/views/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default define({
</onboarding-feature>
</div>
</div>
<ui-text underline>
<ui-text type="body-s" underline>
${msg.html`
Information about web trackers, add-on health and performance telemetry will be shared in accordance with our <a href="${
__PLATFORM__ === 'firefox'
Expand Down
2 changes: 1 addition & 1 deletion extension-manifest-v3/src/ui/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
</template>
`.css`
:host {
background: var(--ui-card-bg, var(--ui-color-layout));
background: var(--ui-color-layout);
border-radius: 16px;
box-shadow: 15px 30px 80px rgba(0, 0, 0, 0.15);
}
Expand Down
1 change: 1 addition & 0 deletions extension-manifest-v3/src/ui/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
import { msg } from 'hybrids';

// Required to force loading localization module before using msg`...`
import './localize.js';

export const categories = {
Expand Down
1 change: 1 addition & 0 deletions extension-manifest-v3/src/ui/localize.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
import { localize } from 'hybrids';

// Localize wrapper for chrome.i18n
if (typeof chrome === 'object' && chrome.i18n) {
localize(chrome.i18n.getMessage.bind(chrome.i18n), { format: 'chrome.i18n' });
}
2 changes: 1 addition & 1 deletion extension-manifest-v3/src/ui/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ html {
--ui-color-gray-400: #a7a7aa;
--ui-color-gray-300: #cdced0;
--ui-color-gray-200: #e3e5e8;
--ui-color-gray-100: hsl(228, 20%, 96%);
--ui-color-gray-100: #f3f4f7;

--ui-color-primary-700: #0077cc;
--ui-color-primary-500: #00aef0;
Expand Down

0 comments on commit 4488d10

Please sign in to comment.