From 63dcf66c72d3d6c42b4ea910abbe7fdb403e6ff4 Mon Sep 17 00:00:00 2001 From: danieldeng2 <danieldeng223@gmail.com> Date: Tue, 18 Aug 2020 12:50:15 +0100 Subject: [PATCH] Change some buttons to be secondary --- .../src/components/molecules/ResourceSectionHeader/index.tsx | 4 +++- frontend/src/components/pages/ModuleResources/index.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/molecules/ResourceSectionHeader/index.tsx b/frontend/src/components/molecules/ResourceSectionHeader/index.tsx index 8109727e4..cc89bdc5b 100644 --- a/frontend/src/components/molecules/ResourceSectionHeader/index.tsx +++ b/frontend/src/components/molecules/ResourceSectionHeader/index.tsx @@ -35,6 +35,7 @@ const ResourceSectionHeader: React.FC<SectionHeaderProps> = ({ <span id="download-button"> <Button style={{ color: checkBoxColur }} + variant="secondary" className={styles.sectionHeaderButton} onClick={() => {}} > @@ -48,7 +49,8 @@ const ResourceSectionHeader: React.FC<SectionHeaderProps> = ({ <Button style={{ color: checkBoxColur }} className={styles.sectionHeaderButton} - onClick={onSelectAllClick} + onClick={onSelectAllClick} + variant="secondary" aria-controls="download-button" aria-expanded={show} > diff --git a/frontend/src/components/pages/ModuleResources/index.tsx b/frontend/src/components/pages/ModuleResources/index.tsx index 19526dcb6..aebaeec10 100644 --- a/frontend/src/components/pages/ModuleResources/index.tsx +++ b/frontend/src/components/pages/ModuleResources/index.tsx @@ -62,7 +62,7 @@ const ModuleResources: React.FC<{ year: string}> = ({year}) => { placeholder="Search..." /> <InputGroup.Append> - <Button className={styles.searchBarIcon}> + <Button variant="secondary" className={styles.searchBarIcon}> <FontAwesomeIcon size="1x" icon={faInfoCircle} /> </Button> </InputGroup.Append> -- GitLab