Standardise info boxes between theme and navigation

This commit is contained in:
Andrew Kingston 2023-08-23 16:46:32 +01:00
parent 07e5f04b6a
commit 07e49f4436
3 changed files with 17 additions and 42 deletions

View File

@ -64,11 +64,9 @@
<Detail>Customize</Detail>
</div>
<div class="info">
<div class="infoHeader">
<Icon name="InfoOutline" />
<Icon name="InfoOutline" size="S" />
<Body size="S">These settings apply to all screens</Body>
</div>
</div>
<div class="configureLinks">
<LinksEditor />
</div>
@ -210,22 +208,14 @@
.info {
background-color: var(--background-alt);
padding: 12px;
margin-bottom: 12px;
}
.infoHeader {
display: flex;
margin-bottom: 5px;
border-radius: 4px;
gap: 4px;
margin-bottom: 16px;
}
.infoHeader :global(svg) {
.info :global(svg) {
margin-right: 5px;
color: var(--grey-6);
}
.infoHeader :global(p) {
color: var(--grey-7);
color: var(--spectrum-global-color-gray-600);
}
.configureLinks :global(button) {

View File

@ -29,13 +29,8 @@
</script>
<div class="info">
<div class="infoHeader">
<Icon name="InfoOutline" size="S" />
<Body size="XS">CHANGES WILL APPLY TO ALL SCREENS</Body>
</div>
<Body size="S">
Your theme is configured for all the screens within your app.
</Body>
<Body size="S">These settings apply to all screens</Body>
</div>
<Layout noPadding gap="S">
<Layout noPadding gap="XS">
@ -68,26 +63,16 @@
/>
</Layout>
<!-- Add this to its own component -->
<style>
.infoHeader {
display: flex;
margin-bottom: 5px;
border-radius: 4px;
}
.infoHeader :global(svg) {
margin-right: 5px;
color: var(--grey-6);
}
.infoHeader :global(p) {
color: var(--grey-6);
}
.info {
background-color: var(--background-alt);
padding: 12px;
margin-bottom: 12px;
display: flex;
border-radius: 4px;
gap: 4px;
}
.info :global(svg) {
margin-right: 5px;
color: var(--spectrum-global-color-gray-600);
}
</style>

View File

@ -6,8 +6,8 @@
import { capitalise } from "helpers"
import { ActionButton, Layout } from "@budibase/bbui"
let activeTab = "settings"
const tabs = ["settings", "theme"]
let activeTab = "general"
const tabs = ["general", "theme"]
</script>
<Panel