From 2f960df9e7303dc00ddc1996646f77aafd662982 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 14 Nov 2022 17:03:38 +0800 Subject: [PATCH] docs: remove custom scrollbar style (#38551) https://github.com/ant-design/ant-design/issues/38463#issuecomment-1308806682 --- .dumi/theme/slots/Content/index.tsx | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/.dumi/theme/slots/Content/index.tsx b/.dumi/theme/slots/Content/index.tsx index 29b33a9e4e..bce671adde 100644 --- a/.dumi/theme/slots/Content/index.tsx +++ b/.dumi/theme/slots/Content/index.tsx @@ -72,27 +72,6 @@ const useStyle = () => { margin: 0 auto; overflow: auto; padding-inline: 4px; - - ::-webkit-scrollbar { - width: 8px; - background-color: transparent; - } - - /* background of the scrollbar except button or resizer */ - ::-webkit-scrollbar-track { - background-color: transparent; - } - - /* scrollbar itself */ - ::-webkit-scrollbar-thumb { - background-color: ${token.colorFill}; - border-radius: 8px; - } - - /* set button(top and bottom of the scrollbar) */ - ::-webkit-scrollbar-button { - display: none; - } } `, }; @@ -144,11 +123,11 @@ const Content: FC<{ children: ReactNode }> = ({ children }) => {
- {anchorItems.map(item => ( + {anchorItems.map((item) => ( {item.children - ?.filter(child => showDebug || !debugDemos.includes(child.id)) - .map(child => ( + ?.filter((child) => showDebug || !debugDemos.includes(child.id)) + .map((child) => (