commit a7974ab2f8a7a189137ccf14107b9202a450b2c6
parent e6fa6649a73c532f5941e781d401b0b2e9d75bbc
Author: Maxx Crawford <mcrawford@mozilla.com>
Date: Thu, 2 Oct 2025 18:34:41 +0000
Bug 1992007 - Update FollowSectionButtonHighlight display logic r=home-newtab-reviewers,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D267130
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/browser/extensions/newtab/content-src/components/DiscoveryStreamComponents/CardSections/CardSections.jsx b/browser/extensions/newtab/content-src/components/DiscoveryStreamComponents/CardSections/CardSections.jsx
@@ -273,7 +273,7 @@ function CardSection({
className={following ? "section-follow following" : "section-follow"}
>
{!anySectionsFollowed &&
- sectionPosition === 1 &&
+ sectionPosition === 0 &&
shouldShowOMCHighlight(
messageData,
"FollowSectionButtonHighlight"
@@ -289,7 +289,7 @@ function CardSection({
</MessageWrapper>
)}
{!anySectionsFollowed &&
- sectionPosition === 1 &&
+ sectionPosition === 0 &&
shouldShowOMCHighlight(
messageData,
"FollowSectionButtonAltHighlight"
diff --git a/browser/extensions/newtab/data/content/activity-stream.bundle.js b/browser/extensions/newtab/data/content/activity-stream.bundle.js
@@ -12242,7 +12242,7 @@ function CardSection({
className: "section-context-wrapper"
}, /*#__PURE__*/external_React_default().createElement("div", {
className: following ? "section-follow following" : "section-follow"
- }, !anySectionsFollowed && sectionPosition === 1 && shouldShowOMCHighlight(messageData, "FollowSectionButtonHighlight") && /*#__PURE__*/external_React_default().createElement(MessageWrapper, {
+ }, !anySectionsFollowed && sectionPosition === 0 && shouldShowOMCHighlight(messageData, "FollowSectionButtonHighlight") && /*#__PURE__*/external_React_default().createElement(MessageWrapper, {
dispatch: dispatch
}, /*#__PURE__*/external_React_default().createElement(FollowSectionButtonHighlight, {
verticalPosition: "inset-block-center",
@@ -12250,7 +12250,7 @@ function CardSection({
dispatch: dispatch,
feature: "FEATURE_FOLLOW_SECTION_BUTTON",
messageData: messageData
- })), !anySectionsFollowed && sectionPosition === 1 && shouldShowOMCHighlight(messageData, "FollowSectionButtonAltHighlight") && /*#__PURE__*/external_React_default().createElement(MessageWrapper, {
+ })), !anySectionsFollowed && sectionPosition === 0 && shouldShowOMCHighlight(messageData, "FollowSectionButtonAltHighlight") && /*#__PURE__*/external_React_default().createElement(MessageWrapper, {
dispatch: dispatch
}, /*#__PURE__*/external_React_default().createElement(FollowSectionButtonHighlight, {
verticalPosition: "inset-block-center",