Skip to content

Commit

Permalink
fix a/b test and scrollbar style
Browse files Browse the repository at this point in the history
  • Loading branch information
guitavano committed Sep 4, 2024
1 parent cbc3526 commit 6a0889e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion components/decohelp/pages/ui/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function AsideLinks({
<>
<SearchButton />
<ul
class={`flex flex-col gap-2 pb-[140px] max-h-full overflow-x-auto lg:max-h-[80vh]`}
class={`flex flex-col gap-2 pb-[140px] max-h-full overflow-x-auto lg:max-h-[80vh] docs-scrollbar`}
>
{subtitle.length > 0 && (
<li class="my-[8px] ml-[25px]">
Expand Down
20 changes: 10 additions & 10 deletions docs/toc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ const tableOfContents: TableOfContents = [
},
slug: "cms-capabilities/advanced/experiments",
},
{
title: {
pt: "Teste A/B",
en: "Creating an A/B Test",
},
slug: "developing-capabilities/apps/ab-test",
},
],
},
{
Expand Down Expand Up @@ -411,14 +418,7 @@ const tableOfContents: TableOfContents = [
en: "Installing Apps",
},
slug: "developing-capabilities/apps/making-an-app-installable",
},
{
title: {
pt: "Criando um Teste A/B",
en: "Creating an A/B Test",
},
slug: "developing-capabilities/apps/ab-test",
},
}
],
},
{
Expand Down Expand Up @@ -556,8 +556,8 @@ const tableOfContents: TableOfContents = [
children: [
{
title: {
pt: "Teste A/B",
en: "A/B Test",
pt: "Teste A/B headless",
en: "Headless A/B Test",
},
slug: "sdk/ab-test",
},
Expand Down
8 changes: 8 additions & 0 deletions tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -565,4 +565,12 @@ select.light-autofill:-webkit-autofill:focus {
box-shadow: 0 0 0px 1000px #e2e8f0 inset !important;
/* Tailwind gray-200 */
transition: background-color 5000s ease-in-out 0s;
}

.docs-scrollbar::-webkit-scrollbar {
@apply bg-transparent w-2;
}

::-webkit-scrollbar-thumb {
@apply bg-[#FFFFFF1A] rounded-full;
}

0 comments on commit 6a0889e

Please sign in to comment.