Skip to content

Commit

Permalink
Move Bgcolor declaration into its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdaley committed Aug 28, 2023
1 parent 3182efa commit 9cedf97
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 1 addition & 3 deletions web/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@use "./variables";

@use "./body";
@use "./animations";
@use "./typography";

Expand Down Expand Up @@ -77,9 +78,6 @@ body {
line-height: var(--token-typography-body-200-line-height);
color: var(--token-color-foreground-primary);
}
.ember-application {
background-color: var(--token-color-surface-primary);
}

a {
text-decoration: none;
Expand Down
11 changes: 11 additions & 0 deletions web/app/styles/body.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.ember-application {
@apply bg-color-page-primary;
}

.secondary-screen {
@apply bg-color-page-faint;

.ember-application {
@apply bg-color-page-faint;
}
}
2 changes: 1 addition & 1 deletion web/app/templates/authenticate.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{! @glint-nocheck: not typesafe yet }}
{{page-title "Authenticate"}}
{{set-body-class "bg-color-page-faint"}}
{{set-body-class "secondary-screen"}}

<div
class="relative flex min-h-full flex-1 flex-col items-center justify-center py-12"
Expand Down
2 changes: 1 addition & 1 deletion web/app/templates/authenticated/document.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{page-title (or @model.doc.title "Document")}}
{{set-body-class "bg-color-page-faint"}}
{{set-body-class "secondary-screen"}}

<Document
@document={{@model.doc}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module("Integration | Component | floating-u-i/content", function (hooks) {
assert
.dom(`.ember-application ${CONTENT_SELECTOR}`)
.exists("content is rendered in the root element");
await this.pauseTest();
});

test("it is positioned by floating-ui", async function (this: FloatingUIComponentTestContext, assert) {
Expand Down

0 comments on commit 9cedf97

Please sign in to comment.