Skip to content

Commit 0528054

Browse files
committed
feat: remove ColorModeToggle component and styles; update theme toggle behavior
- Deleted the ColorModeToggle component and its associated styles to simplify theme management. - Added CSS rules to hide the auto/system mode icon in the theme toggle for a cleaner UI. - Adjusted the header search bar width for improved usability.
1 parent c499c64 commit 0528054

File tree

3 files changed

+7
-150
lines changed

3 files changed

+7
-150
lines changed

src/css/custom.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,13 @@ html[data-theme='dark'] .DocSearch-Logo svg {
808808
filter: grayscale(100%) contrast(150%) brightness(1.8) !important;
809809
}
810810

811+
/* Hide auto/system mode icon in theme toggle */
812+
.toggleIcon[data-theme-choice="null"],
813+
.toggleIcon[aria-label*="system"],
814+
.systemToggleIcon {
815+
display: none !important;
816+
}
817+
811818
/* Make header search bar 50% wider */
812819
.navbar .DocSearch-Button {
813820
width: 300px !important;

src/theme/ColorModeToggle/index.tsx

Lines changed: 0 additions & 117 deletions
This file was deleted.

src/theme/ColorModeToggle/styles.module.css

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)