bold active tab
This commit is contained in:
@@ -21,8 +21,17 @@ export default function TabController({ tabs, children }: TabControllerProps) {
|
||||
<div className="tabs is-boxed is-centered">
|
||||
<ul>
|
||||
{tabs.map((tab, index) => (
|
||||
<li className={currentIndex === index ? "is-active" : ""}>
|
||||
<a onClick={() => handleTabClick(index)}>{tab.label}</a>
|
||||
<li
|
||||
className={
|
||||
currentIndex === index ? "is-active has-text-weight-bold" : ""
|
||||
}
|
||||
>
|
||||
<a
|
||||
className="has-text-black"
|
||||
onClick={() => handleTabClick(index)}
|
||||
>
|
||||
{tab.label}
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user