Skip to content

Commit 7a73ed0

Browse files
authored
Add thin scrollbar styling to CodeBox and Tabs components (nodejs#7489)
* Add thin scrollbar styling to CodeBox and Tabs components * Add thin scrollbar styling to CodeBox and Tabs components
1 parent dc69661 commit 7a73ed0

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

apps/site/components/Common/CodeBox/index.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
& > code {
1313
@apply font-ibm-plex-mono
1414
font-regular
15+
scrollbar-thin
1516
grid
1617
overflow-x-auto
1718
bg-transparent

apps/site/components/Common/Tabs/index.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
.tabsList {
55
@apply font-open-sans
6+
scrollbar-thin
67
flex
78
gap-2
89
overflow-x-auto;

apps/site/tailwind.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Config } from 'tailwindcss';
2+
import plugin from 'tailwindcss/plugin';
23

34
export default {
45
content: [
@@ -174,5 +175,12 @@ export default {
174175
plugins: [
175176
require('@savvywombat/tailwindcss-grid-areas'),
176177
require('@tailwindcss/container-queries'),
178+
plugin(function ({ addUtilities }) {
179+
addUtilities({
180+
'.scrollbar-thin': {
181+
'scrollbar-width': 'thin',
182+
},
183+
});
184+
}),
177185
],
178186
} satisfies Config;

0 commit comments

Comments
 (0)