From ee6fb60cf7979c04ee20d8abff1ec6db3040028d Mon Sep 17 00:00:00 2001
From: Timon Rey Turak <31767369+timonrey@users.noreply.github.com>
Date: Wed, 5 Jun 2024 15:49:39 +0200
Subject: [PATCH] [release notes] Further adjustments that need to go into the
next release (#1995)
* chore: adjust hover colors + don't show same labels twice
* chore: add changeset
* chore: typo
* chore: fix color of release note link
* chore: revert last change
* chore: add space
---
.changeset/afraid-moose-tell.md | 5 +++++
.../src/layouts/internals/layout-release-note-body.js | 3 ++-
.../src/layouts/internals/layout-release-note.js | 2 +-
.../src/releases/release-note-with-index-frontmatters.mdx | 4 ++--
4 files changed, 10 insertions(+), 4 deletions(-)
create mode 100644 .changeset/afraid-moose-tell.md
diff --git a/.changeset/afraid-moose-tell.md b/.changeset/afraid-moose-tell.md
new file mode 100644
index 0000000000..cad72b7b17
--- /dev/null
+++ b/.changeset/afraid-moose-tell.md
@@ -0,0 +1,5 @@
+---
+'@commercetools-docs/gatsby-theme-docs': patch
+---
+
+Don't show product and productArea labels on release notes when the value is the Same. Adjusts the hover colors on release notes
diff --git a/packages/gatsby-theme-docs/src/layouts/internals/layout-release-note-body.js b/packages/gatsby-theme-docs/src/layouts/internals/layout-release-note-body.js
index a49072608d..ec5f75463a 100644
--- a/packages/gatsby-theme-docs/src/layouts/internals/layout-release-note-body.js
+++ b/packages/gatsby-theme-docs/src/layouts/internals/layout-release-note-body.js
@@ -65,7 +65,8 @@ const ReleaseNoteBody = (props) => {
{product}
)}
- {productArea && (
+ {/* If product and productArea have the same value, we only want to show it once. */}
+ {productArea && productArea !== product && (
{productArea}
diff --git a/packages/gatsby-theme-docs/src/layouts/internals/layout-release-note.js b/packages/gatsby-theme-docs/src/layouts/internals/layout-release-note.js
index b9deedab1b..70ce0f41ae 100644
--- a/packages/gatsby-theme-docs/src/layouts/internals/layout-release-note.js
+++ b/packages/gatsby-theme-docs/src/layouts/internals/layout-release-note.js
@@ -12,7 +12,7 @@ const linkStyles = css`
color: ${designSystem.colors.light.textPrimary} !important;
:hover {
- color: ${designSystem.colors.light.linkNavigation} !important;
+ color: ${designSystem.colors.light.linkHover} !important;
}
`;
diff --git a/websites/docs-smoke-test/src/releases/release-note-with-index-frontmatters.mdx b/websites/docs-smoke-test/src/releases/release-note-with-index-frontmatters.mdx
index 89747f68f1..f1a1f380a3 100644
--- a/websites/docs-smoke-test/src/releases/release-note-with-index-frontmatters.mdx
+++ b/websites/docs-smoke-test/src/releases/release-note-with-index-frontmatters.mdx
@@ -11,8 +11,8 @@ type:
- deprecation
topics:
- Settings
-product: Composable Commerce
-productArea: HTTP APIs
+product: Connect
+productArea: Connect
---
FooBar Intro Line: What this is good for (like description)