Skip to content

Commit

Permalink
chore: adds backdrop to tablist in fast-frame (#3245)
Browse files Browse the repository at this point in the history
* feat: adds backdrop to tablist in fast-frame

* updated design based on feedback from Jason
  • Loading branch information
eljefe223 authored and chrisdholt committed Jun 16, 2020
1 parent 932208a commit 4997ad0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
accentForegroundRestBehavior,
neutralForegroundHintBehavior,
neutralForegroundRestBehavior,
neutralFillCardRestBehavior,
} from "@microsoft/fast-components";
import { drawerBreakpoint } from "./fast-frame";

Expand All @@ -16,7 +17,9 @@ export const FastFrameStyles = css`
color: var(--neutral-foreground-rest);
box-sizing: border-box;
text-align: center;
width: 100%
width: 100%;
background: var(--background-color);
border-radius: calc(var(--corner-radius) * 1px);
}
:host {
Expand All @@ -40,7 +43,7 @@ export const FastFrameStyles = css`
flex-direction: column;
width: 100%;
text-align: start;
background: var(--background-color);
background: var(--neutral-fill-card-rest);
padding: calc(var(--gutter) * 2px);
}
Expand Down Expand Up @@ -90,8 +93,9 @@ export const FastFrameStyles = css`
grid-gap: calc(var(--gutter) * 2px);
grid-template-columns: auto 300px;
padding: calc(var(--gutter) * 2px);
background: var(--background-color);
background: var(--neutral-fill-card-rest);
position: relative;
border-radius: 0 calc(var(--corner-radius) * 1px) calc(var(--corner-radius) * 1px) 0;
}
.image-container {
Expand Down Expand Up @@ -239,10 +243,14 @@ export const FastFrameStyles = css`
}
fast-tab-panel {
background: var(--background-color);
background: var(--neutral-fill-card-rest);
height: 100%;
}
fast-tab[aria-selected="true"] {
background: transparent;
}
fast-radio-group::part(positioning-region) {
display: grid;
grid-gap: 10px;
Expand All @@ -269,6 +277,7 @@ export const FastFrameStyles = css`
.preview {
grid-template-columns: minMax(300px, auto);
border-radius: calc(var(--corner-radius) * 1px);
}
}
Expand All @@ -288,6 +297,7 @@ export const FastFrameStyles = css`
width: 80%;
transition: right .5s ease-in-out;
align-self: center;
border-radius: calc(var(--corner-radius) * 1px);
}
.preview__expanded {
Expand Down Expand Up @@ -321,6 +331,7 @@ export const FastFrameStyles = css`
.preview {
right: -88%;
width: 70%;
border-radius: calc(var(--corner-radius) * 1px);
}
.preview__expanded {
Expand Down Expand Up @@ -352,5 +363,6 @@ export const FastFrameStyles = css`
accentForegroundCutRestBehavior,
accentForegroundRestBehavior,
neutralForegroundHintBehavior,
neutralForegroundRestBehavior
neutralForegroundRestBehavior,
neutralFillCardRestBehavior
);
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export class FastFrame extends FASTElement {
public accentColor: string = "#F33378";

@attr({ attribute: "background-color" })
public backgroundColor: string = "#1F1F1F";
public backgroundColor: string = "#212121";

@attr
public darkMode: boolean = true;

@observable
public previewBackgroundPalette: string[] = [
"#1F1F1F",
"#212121",
"#2B2B2B",
"#333333",
"#3B3B3B",
Expand Down

0 comments on commit 4997ad0

Please sign in to comment.