From 8261923d70bf3739499fd5420d94793f4c78f94b Mon Sep 17 00:00:00 2001 From: Deekshith Kumar Date: Wed, 11 Mar 2026 02:26:04 -0400 Subject: [PATCH] Fix dark mode styling for PR reviewer promotion modal --- package.json | 17 +- src/components/PRPromotions/DisplayBox.jsx | 6 +- .../PRPromotions/DisplayBox.module.css | 125 +- yarn.lock | 3013 ++++++++--------- 4 files changed, 1448 insertions(+), 1713 deletions(-) diff --git a/package.json b/package.json index 44f324c05f..47b4c9068c 100644 --- a/package.json +++ b/package.json @@ -147,6 +147,7 @@ "lint": "eslint \"**/*.{js,jsx}\"", "lint:fix": "eslint --fix \"**/*.{js,jsx}\"", "lint:css": "stylelint \"**/*.{css,scss,sass}\"", + "lint:css:fix": "stylelint --fix \"**/*.{css,scss,sass}\"", "prepare": "husky install" }, "browserslist": [ @@ -208,13 +209,15 @@ "vite": "^6.3.5", "vitest": "^3.2.0" }, - "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "eslint --fix", - "prettier --write" - ], - "**/*.{css,scss,sass}": "stylelint" - }, + "lint-staged": { + "*.{js,jsx,ts,tsx}": [ + "eslint --fix", + "prettier --write" + ], + "**/*.{css,scss,sass}": [ + "cmd /c npm run lint:css:fix --" + ] +}, "optionalDependencies": { "@rollup/rollup-darwin-arm64": "^4.54.0" } diff --git a/src/components/PRPromotions/DisplayBox.jsx b/src/components/PRPromotions/DisplayBox.jsx index 298e61dc42..ea4ceaddd7 100644 --- a/src/components/PRPromotions/DisplayBox.jsx +++ b/src/components/PRPromotions/DisplayBox.jsx @@ -45,16 +45,15 @@ export default function DisplayBox({ onClose, darkMode = false }) { setCheckedItems(new Array(mockPromotionData.length).fill(!allChecked)); }; - const popupClass = `${styles.popup} ${darkMode ? styles['popup-dark'] : ''}`; - return (
-
+

Are you sure you want to promote these PR reviewers?

+ @@ -100,6 +99,7 @@ export default function DisplayBox({ onClose, darkMode = false }) { ))}
+