diff --git a/less/Common/Constants.less b/less/Common/Constants.less index bc8616929..a9c3672fd 100644 --- a/less/Common/Constants.less +++ b/less/Common/Constants.less @@ -57,6 +57,8 @@ @FocusColor: #605e5c; +@GalleryBackgroundColor: #fdfdfd; + /****************************************************************************** METRICS /******************************************************************************/ diff --git a/src/Explorer/Controls/NotebookGallery/Cards/GalleryCardComponent.tsx b/src/Explorer/Controls/NotebookGallery/Cards/GalleryCardComponent.tsx index 333905659..7fd7f6ff7 100644 --- a/src/Explorer/Controls/NotebookGallery/Cards/GalleryCardComponent.tsx +++ b/src/Explorer/Controls/NotebookGallery/Cards/GalleryCardComponent.tsx @@ -18,7 +18,6 @@ import * as React from "react"; import { IGalleryItem } from "../../../../Juno/JunoClient"; import { FileSystemUtil } from "../../../Notebook/FileSystemUtil"; import CosmosDBLogo from "../../../../../images/CosmosDB-logo.svg"; -import { StyleConstants } from "../../../../Common/Constants"; export interface GalleryCardComponentProps { data: IGalleryItem; @@ -54,6 +53,7 @@ export class GalleryCardComponent extends React.Component { return ( - + {text} ); diff --git a/src/Explorer/Controls/NotebookGallery/Cards/__snapshots__/GalleryCardComponent.test.tsx.snap b/src/Explorer/Controls/NotebookGallery/Cards/__snapshots__/GalleryCardComponent.test.tsx.snap index d3d4d69e0..17b066081 100644 --- a/src/Explorer/Controls/NotebookGallery/Cards/__snapshots__/GalleryCardComponent.test.tsx.snap +++ b/src/Explorer/Controls/NotebookGallery/Cards/__snapshots__/GalleryCardComponent.test.tsx.snap @@ -5,6 +5,11 @@ exports[`GalleryCardComponent renders 1`] = ` aria-label="name" data-is-focusable="true" onClick={[Function]} + style={ + Object { + "background": "white", + } + } tokens={ Object { "childrenGap": 0, @@ -88,7 +93,7 @@ exports[`GalleryCardComponent renders 1`] = ` styles={ Object { "root": Object { - "color": undefined, + "color": "#605E5C", "paddingRight": 8, }, } @@ -112,7 +117,7 @@ exports[`GalleryCardComponent renders 1`] = ` styles={ Object { "root": Object { - "color": undefined, + "color": "#605E5C", "paddingRight": 8, }, } @@ -136,7 +141,7 @@ exports[`GalleryCardComponent renders 1`] = ` styles={ Object { "root": Object { - "color": undefined, + "color": "#605E5C", "paddingRight": 8, }, } diff --git a/src/Explorer/Controls/NotebookGallery/GalleryViewerComponent.less b/src/Explorer/Controls/NotebookGallery/GalleryViewerComponent.less index ae87fe42c..2fcbdd780 100644 --- a/src/Explorer/Controls/NotebookGallery/GalleryViewerComponent.less +++ b/src/Explorer/Controls/NotebookGallery/GalleryViewerComponent.less @@ -6,6 +6,7 @@ overflow-y: auto; width: 100%; font-family: @DataExplorerFont; + background: @GalleryBackgroundColor; } .publicGalleryTabContainer { diff --git a/src/GalleryViewer/GalleryViewer.less b/src/GalleryViewer/GalleryViewer.less new file mode 100644 index 000000000..2eab230e9 --- /dev/null +++ b/src/GalleryViewer/GalleryViewer.less @@ -0,0 +1,5 @@ +@import "../../less/Common/Constants"; + +.standalone-gallery-root { + background: @GalleryBackgroundColor; +} \ No newline at end of file diff --git a/src/GalleryViewer/GalleryViewer.tsx b/src/GalleryViewer/GalleryViewer.tsx index 1eb18c538..1a49c22cf 100644 --- a/src/GalleryViewer/GalleryViewer.tsx +++ b/src/GalleryViewer/GalleryViewer.tsx @@ -1,4 +1,5 @@ import "bootstrap/dist/css/bootstrap.css"; +import "./GalleryViewer.less"; import { initializeIcons } from "office-ui-fabric-react/lib/Icons"; import { Text, Link } from "office-ui-fabric-react"; import * as React from "react"; @@ -32,7 +33,7 @@ const onInit = async () => { }; const element = ( - <> +
@@ -53,7 +54,7 @@ const onInit = async () => {
- + ); ReactDOM.render(element, document.getElementById("galleryContent"));