diff --git a/.changeset/quiet-comics-act.md b/.changeset/quiet-comics-act.md
new file mode 100644
index 0000000000..b3ed43a649
--- /dev/null
+++ b/.changeset/quiet-comics-act.md
@@ -0,0 +1,5 @@
+---
+"gitbook": patch
+---
+
+Tweak language dropdown styling
diff --git a/packages/gitbook/src/components/Header/Header.tsx b/packages/gitbook/src/components/Header/Header.tsx
index 38529ac070..999c4d1fd2 100644
--- a/packages/gitbook/src/components/Header/Header.tsx
+++ b/packages/gitbook/src/components/Header/Header.tsx
@@ -188,13 +188,12 @@ export function Header(props: {
{withVariants === 'translations' ? (
-
-
-
+
) : null}
diff --git a/packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx b/packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx
index dce92e949e..9bf7be4a4c 100644
--- a/packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx
+++ b/packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx
@@ -67,15 +67,18 @@ export function SiteSectionTabs(props: {
className={tcls(
'grow',
'md:-ml-8 -ml-4 sm:-ml-6',
- !children ? 'md:-mr-8 -mr-4 sm:-mr-6' : ''
+ !children
+ ? 'md:-mr-8 -mr-4 sm:-mr-6'
+ : 'after:contents[] after:absolute after:inset-y-2 after:right-0 after:border-transparent after:border-r after:transition-colors'
)}
activeId={currentSection.id}
+ trailingEdgeScrollClassName={children ? 'after:border-tint' : ''}
>
;
export function ScrollContainer(props: ScrollContainerProps) {
- const { children, className, orientation, activeId, ...rest } = props;
+ const {
+ children,
+ className,
+ orientation,
+ activeId,
+ leadingEdgeScrollClassName,
+ trailingEdgeScrollClassName,
+ ...rest
+ } = props;
const containerRef = React.useRef(null);
@@ -110,7 +124,12 @@ export function ScrollContainer(props: ScrollContainerProps) {
return (
0 ? leadingEdgeScrollClassName : '',
+ scrollPosition < scrollSize ? trailingEdgeScrollClassName : '' + )} {...rest}>
{/* Scrollable content */}
@@ -140,7 +159,7 @@ export function ScrollContainer(props: ScrollContainerProps) {
icon={orientation === 'horizontal' ? 'chevron-left' : 'chevron-up'}
iconOnly
size="xsmall"
- variant="secondary"
+ variant="header"
tabIndex={-1}
className={tcls(
orientation === 'horizontal'
@@ -158,7 +177,7 @@ export function ScrollContainer(props: ScrollContainerProps) {
icon={orientation === 'horizontal' ? 'chevron-right' : 'chevron-down'}
iconOnly
size="xsmall"
- variant="secondary"
+ variant="header"
tabIndex={-1}
className={tcls(
orientation === 'horizontal'