diff --git a/CHANGELOG.md b/CHANGELOG.md index abfd780c..18701ee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -160,7 +160,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Changed - Migrating styles from Styled Components to CSS Modules - - ContactUsCard + - ContactUsCards - ContactUsForm - ButtonLink - SubmitButton @@ -169,15 +169,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - PostContent - SearchBar - BlogPostsContainer + - BlogPostContainer - RevealContentContainer - Member - Row - Container - Wrapper + - Extracted :root from themes.scss to globals.scss - Updated ContactUsForm's checkbox wrapper from div to label to enhance its accessibility - Updated SearchInput width to 100% for better styling -- Reverted the prop name to styles in Container component as the change of the name introduced a styling bug -- Rename RowAlignLeft to Row -- Extracted :root from themes.scss to globals.scss +- Updated the prop name to propStyles in Container component to fix the name conflict that introduced a styling bug +- Updated altTag from TwoColumns component to comply with W3C standards + - BlogPostContainer + - about page + - home(index) page - Created a combineClasses function to clean up conditional class handling - +- Rename RowAlignLeft to Row \ No newline at end of file diff --git a/components/blog/BlogPostContainer/index.js b/components/blog/BlogPostContainer/index.js index a2abef66..5bc9581b 100644 --- a/components/blog/BlogPostContainer/index.js +++ b/components/blog/BlogPostContainer/index.js @@ -3,10 +3,8 @@ import TwoColumn from '@/components/containers/TwoColumn'; import AuthorBio from '@/components/blog/AuthorBio'; import RelatedOrLatestPosts from '@/components/blog/RelatedPosts'; import PostContent from '@/components/blog/PostContent'; -import { useTheme } from 'styled-components'; const BlogPostContainer = ({ post, relatedPosts, latestPosts }) => { - const theme = useTheme(); const { user } = post; return ( <> @@ -27,9 +25,7 @@ const BlogPostContainer = ({ post, relatedPosts, latestPosts }) => { title='Still got questions?' content='Feel free to contact us.' image='/images/svg/square-brackets.svg' - altTag='Hashtag' - color={theme.colors.primaryContent} - bgColor={theme.colors.white} + altTag='' $contentType='questions' link='/contact' linkText='Contact us' diff --git a/pages/about.js b/pages/about.js index f9a651c7..e5ff5921 100644 --- a/pages/about.js +++ b/pages/about.js @@ -31,7 +31,7 @@ export default function AboutUs() { } rowOrder='row' image='/images/svg/square-brackets.svg' - altTag='Square Brackets' + altTag='' color={theme.colors.primaryContent} bgColor={theme.colors.primaryAccent} $contentType='our-background' @@ -72,7 +72,7 @@ export default function AboutUs() { } rowOrder='row-reverse' image='/images/svg/open-angle-bracket.svg' - altTag='Open angle bracket' + altTag='' color={theme.colors.primaryContent} bgColor={theme.colors.white} $contentType='our-process' @@ -94,7 +94,7 @@ export default function AboutUs() { } image='/images/svg/close-angle-bracket.svg' - altTag='close-angle-bracket' + altTag='' color={theme.colors.primaryContent} bgColor={theme.colors.white} $contentType='our-process' @@ -137,7 +137,7 @@ export default function AboutUs() { } rowOrder='row-reverse' image='/images/svg/semi-colon.svg' - altTag='Semi-colon' + altTag='' color={theme.colors.primaryContent} bgColor={theme.colors.white} $contentType='our-purpose' @@ -148,7 +148,7 @@ export default function AboutUs() { title='Wanna learn more?' content={''} image='/images/svg/close-curly-bracket.svg' - altTag='Close curly bracket' + altTag='' color={theme.colors.primaryContent} bgColor={theme.colors.lightBg} $contentType='wanna-learn-more' @@ -217,7 +217,7 @@ export default function AboutUs() { } rowOrder='row-reverse' image='/images/svg/slash.svg' - altTag='Slash' + altTag='' color={theme.colors.primaryContent} bgColor={theme.colors.white} $contentType='get-started' @@ -254,7 +254,7 @@ export default function AboutUs() { title='Still got questions?' content='Feel free to contact us.' image='/images/svg/hashtag.svg' - altTag='Hashtag' + altTag='' color={theme.colors.primaryContent} bgColor={theme.colors.white} $contentType='questions' diff --git a/pages/index.js b/pages/index.js index ec846592..62b88b97 100644 --- a/pages/index.js +++ b/pages/index.js @@ -12,7 +12,7 @@ export default function Home() {