Resolved tabs highlight color issue (#2900)

This commit is contained in:
Muhsin Shah C P 2022-04-26 19:30:36 +05:30 committed by GitHub
parent 794e708e6a
commit efeef4d0db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,6 +77,11 @@ export const Tabs = function Tabs({
? { color: parsedHighlightColor, borderBottom: `1px solid ${parsedHighlightColor}` }
: {}
}
ref={(el) => {
if (el && currentTab == tab.id) {
el.style.setProperty('color', parsedHighlightColor, 'important');
}
}}
>
{tab.title}
</a>