From 7fa700a5371e1737ef60c42b15b33625a64f52f1 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 28 Apr 2021 15:53:21 +0100 Subject: [PATCH] Update merged files to use spectrum --- packages/bbui/src/Link/Link.svelte | 29 +++++----- packages/bbui/src/Modal/Modal.svelte | 7 ++- packages/bbui/src/Modal/ModalContent.svelte | 10 +--- .../src/components/login/LoginForm.svelte | 58 ++++++++++++------- .../components/start/CreateAppModal.svelte | 2 +- .../src/components/start/LogoutButton.svelte | 26 +-------- .../builder/src/pages/builder/_layout.svelte | 4 ++ 7 files changed, 68 insertions(+), 68 deletions(-) diff --git a/packages/bbui/src/Link/Link.svelte b/packages/bbui/src/Link/Link.svelte index 49a7c2bf20..c1613378f6 100644 --- a/packages/bbui/src/Link/Link.svelte +++ b/packages/bbui/src/Link/Link.svelte @@ -1,17 +1,20 @@ - \ No newline at end of file + diff --git a/packages/bbui/src/Modal/Modal.svelte b/packages/bbui/src/Modal/Modal.svelte index f1116b4bba..f8d07a16df 100644 --- a/packages/bbui/src/Modal/Modal.svelte +++ b/packages/bbui/src/Modal/Modal.svelte @@ -5,10 +5,11 @@ import { fade, fly } from "svelte/transition" import Portal from "svelte-portal" import Context from "../context" - import clickOutside from "../Actions/click_outside" + + export let fixed = false const dispatch = createEventDispatcher() - let visible = false + let visible = !!fixed $: dispatch(visible ? "show" : "hide") export function show() { @@ -19,7 +20,7 @@ } export function hide() { - if (!visible) { + if (!visible || fixed) { return } visible = false diff --git a/packages/bbui/src/Modal/ModalContent.svelte b/packages/bbui/src/Modal/ModalContent.svelte index fc5bd48079..321c0177a4 100644 --- a/packages/bbui/src/Modal/ModalContent.svelte +++ b/packages/bbui/src/Modal/ModalContent.svelte @@ -2,7 +2,6 @@ import "@spectrum-css/dialog/dist/index-vars.css" import { getContext } from "svelte" import Button from "../Button/Button.svelte" - import Heading from "../Typography/Heading.svelte" import Divider from "../Divider/Divider.svelte" import Icon from "../Icon/Icon.svelte" import Context from "../context" @@ -35,8 +34,7 @@ style="position: relative;" role="dialog" tabindex="-1" - aria-modal="true" -> + aria-modal="true">

{title} @@ -49,8 +47,7 @@ {#if showCancelButton || showConfirmButton}
+ class="spectrum-ButtonGroup spectrum-Dialog-buttonGroup spectrum-Dialog-buttonGroup--noFooter"> {#if showCancelButton} @@ -61,8 +58,7 @@ cta {...$$restProps} disabled={confirmDisabled} - on:click={confirm} - > + on:click={confirm}> {confirmText} {/if} diff --git a/packages/builder/src/components/login/LoginForm.svelte b/packages/builder/src/components/login/LoginForm.svelte index 888054df1b..405d429e7f 100644 --- a/packages/builder/src/components/login/LoginForm.svelte +++ b/packages/builder/src/components/login/LoginForm.svelte @@ -1,6 +1,12 @@ -
- - - - - - - - - Sign In With Google - - + + + + + + + diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index f71c601269..03ea7da21b 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -29,7 +29,7 @@ { roleId: string() .nullable() - .required("You need to select a role for your user"), + .required("You need to select a role for this app"), }, ] diff --git a/packages/builder/src/components/start/LogoutButton.svelte b/packages/builder/src/components/start/LogoutButton.svelte index 732b34e533..a281bdbdc9 100644 --- a/packages/builder/src/components/start/LogoutButton.svelte +++ b/packages/builder/src/components/start/LogoutButton.svelte @@ -1,28 +1,6 @@ -
- -
- - + diff --git a/packages/builder/src/pages/builder/_layout.svelte b/packages/builder/src/pages/builder/_layout.svelte index 7ac9d7e5f6..f4f1eb15c8 100644 --- a/packages/builder/src/pages/builder/_layout.svelte +++ b/packages/builder/src/pages/builder/_layout.svelte @@ -105,4 +105,8 @@ justify-content: space-between; height: 100%; } + + .nav-bottom :global(> *) { + margin-top: 5px; + }