diff --git a/src/components/header/CategoryList.js b/src/components/header/CategoryList.js
index ffce9bd..6f5ff24 100644
--- a/src/components/header/CategoryList.js
+++ b/src/components/header/CategoryList.js
@@ -361,7 +361,6 @@ class CategoryList extends Component {
onClick={isMobile ? this.handleMobileCategoryClick : undefined}
sx={{
fontSize: "0.75rem",
- fontWeight: "bold",
textTransform: "none",
whiteSpace: "nowrap",
opacity: 0.9,
@@ -371,20 +370,64 @@ class CategoryList extends Component {
borderRadius: 1,
justifyContent: isMobile ? "flex-start" : "center",
transition: "all 0.2s ease",
+ textShadow: "0 1px 2px rgba(0,0,0,0.3)",
+ position: "relative",
...(this.props.activeCategoryId === null && {
bgcolor: "#fff",
- color: "#2e7d32",
+ textShadow: "none",
opacity: 1,
}),
"&:hover": {
opacity: 1,
bgcolor: "#fff",
- color: "#2e7d32",
+ textShadow: "none",
+ "& .MuiSvgIcon-root": {
+ color: "#2e7d32 !important",
+ },
+ "& .bold-text": {
+ color: "#2e7d32 !important",
+ },
+ "& .thin-text": {
+ color: "transparent !important",
+ },
},
}}
>
-
- {isMobile && "Startseite"}
+
+ {isMobile && (
+
+ {/* Bold text (always rendered to set width) */}
+
+ Startseite
+
+ {/* Thin text (positioned on top) */}
+
+ Startseite
+
+
+ )}
)}
{this.state.fetchedCategories && categories.length > 0 ? (
@@ -405,7 +448,6 @@ class CategoryList extends Component {
onClick={isMobile ? this.handleMobileCategoryClick : undefined}
sx={{
fontSize: "0.75rem",
- fontWeight: "bold",
textTransform: "none",
whiteSpace: "nowrap",
opacity: 0.9,
@@ -415,19 +457,54 @@ class CategoryList extends Component {
borderRadius: 1,
justifyContent: isMobile ? "flex-start" : "center",
transition: "all 0.2s ease",
+ textShadow: "0 1px 2px rgba(0,0,0,0.3)",
+ position: "relative",
...(isActiveAtThisLevel && {
bgcolor: "#fff",
- color: "#2e7d32",
+ textShadow: "none",
opacity: 1,
}),
"&:hover": {
opacity: 1,
bgcolor: "#fff",
- color: "#2e7d32",
+ textShadow: "none",
+ "& .bold-text": {
+ color: "#2e7d32 !important",
+ },
+ "& .thin-text": {
+ color: "transparent !important",
+ },
},
}}
>
- {category.name}
+
+ {/* Bold text (always rendered to set width) */}
+
+ {category.name}
+
+ {/* Thin text (positioned on top) */}
+
+ {category.name}
+
+
);
})}
@@ -526,7 +603,10 @@ class CategoryList extends Component {
}
}}
>
-
+
Kategorien