Skip to content

Commit bf7102a

Browse files
committed
capitalize frameworks in code tabs
1 parent 777ce0e commit bf7102a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/markdown/Tabs.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@ const Tab = React.memo(
118118
activeSlug === tab.slug
119119
? 'border-current text-current bg-gray-100 dark:bg-gray-900'
120120
: 'border-transparent text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-200'
121-
}`}
121+
}`
122+
}
122123
>
123124
{option && <img src={option.logo} alt="" className="w-4 h-4 -ml-1" />}
124-
<span>{tab.name}</span>
125+
<span className={`${option ? 'capitalize' : ''}`}>{tab.name}</span>
125126
</button>
126127
)
127128
},

0 commit comments

Comments
 (0)