Skip to content

Commit a655f66

Browse files
committed
fix: update table, and challenge navigation borders in dark mode
1 parent 93f6c27 commit a655f66

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/MDX/Challenges/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function Navigation({
115115
onClick={handleScrollLeft}
116116
aria-label="Scroll left"
117117
className={cn(
118-
'bg-secondary-button dark:bg-secondary-button-dark h-8 px-2 rounded-l rtl:rounded-r rtl:rounded-l-none border-gray-20 border-r rtl:border-l rtl:border-r-0',
118+
'bg-secondary-button dark:bg-secondary-button-dark h-8 px-2 rounded-l rtl:rounded-r rtl:rounded-l-none border-gray-20 border-r dark:border-border-dark rtl:border-l rtl:border-r-0',
119119
{
120120
'text-primary dark:text-primary-dark': canScrollLeft,
121121
'text-gray-30': !canScrollLeft,

src/styles/index.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,13 @@
501501
overflow: auto;
502502
}
503503

504+
html.dark {
505+
table td,
506+
table th {
507+
border-color: #343a46;
508+
}
509+
}
510+
504511
summary::-webkit-details-marker {
505512
display: none;
506513
}

0 commit comments

Comments
 (0)