Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 DOP-4654 applies dark mode support for product list component #1118

Merged
merged 7 commits into from
Jun 7, 2024

Conversation

caesarbell
Copy link
Collaborator

@caesarbell caesarbell commented Jun 6, 2024

Stories/Links:

DOP-4654

Current Behavior:

Docs Landing

Staging Links:

Staged: Docs Landing

Notes:

This applies dark mode support to the Product List in the Side Nav.

README updates

    • This PR introduces changes that should be reflected in the README, and I have made those updates.
    • This PR does not introduce changes that should be reflected in the README

@caesarbell caesarbell marked this pull request as ready for review June 6, 2024 21:19
Copy link
Collaborator

@seungpark seungpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments below! thanks for the catch with the landing heading!

src/components/Sidenav/ProductsList.js Show resolved Hide resolved
src/components/Sidenav/ProductsList.js Show resolved Hide resolved
src/components/Sidenav/ProductsList.js Outdated Show resolved Hide resolved
@caesarbell caesarbell requested a review from seungpark June 6, 2024 22:29
Copy link
Collaborator

@seungpark seungpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM 👍

@@ -62,7 +63,6 @@ const sideNavStyling = ({ hideMobile, isCollapsed }) => LeafyCSS`
${isCollapsed && 'display: none;'}
}

a,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering what this change is

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmeigs this was applying the settings to the l > a tags in the product list. I had to remove it to allow the dark mode styles to work within the View all products.

@@ -106,7 +106,7 @@ const Landing = ({ children, pageContext, useChatbot }) => {
}
}
main h1:first-of-type {
color: ${darkMode ? palette.gray.light2 : palette.black};
color: ${palette.gray.light2};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this color is different from the header in production, which is #FFFFFF

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mayaraman19 when looking at tool-and-connectors in production it has the same green, or am I seeing it wrong https://www.mongodb.com/docs/tools-and-connectors/

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mayaraman19 I will update the PR for to use the #fff, good catch on that

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caesarbell to answer ur question, yes it uses the same green but as the font is changing to the green since i think those styles are being added, you can see the large grey font briefly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caesarbell can you also update the staging after you've done so? :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the staging link. Are you not seeing the most recent?

@@ -106,7 +106,7 @@ const Landing = ({ children, pageContext, useChatbot }) => {
}
}
main h1:first-of-type {
color: ${darkMode ? palette.gray.light2 : palette.black};
color: ${palette.gray.light2};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to @mayaraman19 , I found this was causing a bug with the h1 on the homepage. I figure it was a small enough fix to include in this PR.

src/components/Sidenav/ProductsList.js Show resolved Hide resolved
src/components/Sidenav/ProductsList.js Outdated Show resolved Hide resolved
src/components/Sidenav/ProductsList.js Outdated Show resolved Hide resolved
src/components/Sidenav/ProductsList.js Show resolved Hide resolved
src/components/Sidenav/ProductsList.js Show resolved Hide resolved
@@ -62,7 +63,6 @@ const sideNavStyling = ({ hideMobile, isCollapsed }) => LeafyCSS`
${isCollapsed && 'display: none;'}
}

a,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmeigs this was applying the settings to the l > a tags in the product list. I had to remove it to allow the dark mode styles to work within the View all products.

@@ -106,7 +106,7 @@ const Landing = ({ children, pageContext, useChatbot }) => {
}
}
main h1:first-of-type {
color: ${darkMode ? palette.gray.light2 : palette.black};
color: ${palette.gray.light2};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mayaraman19 when looking at tool-and-connectors in production it has the same green, or am I seeing it wrong https://www.mongodb.com/docs/tools-and-connectors/

@@ -106,7 +106,7 @@ const Landing = ({ children, pageContext, useChatbot }) => {
}
}
main h1:first-of-type {
color: ${darkMode ? palette.gray.light2 : palette.black};
color: ${palette.gray.light2};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mayaraman19 I will update the PR for to use the #fff, good catch on that

@caesarbell caesarbell merged commit ba68ab8 into main Jun 7, 2024
2 checks passed
@caesarbell caesarbell deleted the DOP-4654 branch June 7, 2024 16:04
mayaraman19 pushed a commit that referenced this pull request Jun 7, 2024
Co-authored-by: Caesar Bell <caesar.bell@mongodb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants