Merge pull request #514 from Irev-Dev/side-tray-styles-patch

side-tray-styles-patch
This commit was merged in pull request #514.
This commit is contained in:
Kurt Hutten
2021-09-18 17:33:41 +10:00
committed by GitHub
2 changed files with 6 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import { useState } from 'react'
import { getActiveClasses } from 'get-active-classes'
import Svg from 'src/components/Svg/Svg'
import {
sidebarTopConfig,
@@ -10,9 +10,11 @@ import { useIdeContext } from 'src/helpers/hooks/useIdeContext'
function TabToggle({ item, className = '', active, onChange, onClick }) {
return (
<label
className={`tabToggle${item.disabled ? ' disabled' : ''}${
active ? ' active' : ''
} ${className}`}
className={getActiveClasses({
'bg-ch-pink-800 text-ch-pink-300 bg-opacity-30': active,
'text-ch-gray-550 cursor-not-allowed': item.disabled,
[`text-ch-gray-300 p-3 mb-1 flex justify-center ${className}`]: true,
})}
>
<input
name="sidebar-tabs"

View File

@@ -32,19 +32,6 @@
}
@layer components {
.tabToggle {
@apply text-ch-gray-300 p-3 mb-1 flex justify-center;
}
.tabToggle.active {
@apply bg-ch-pink-800 text-ch-pink-300 bg-opacity-30;
}
.tabToggle.disabled {
@apply text-ch-gray-550 cursor-not-allowed;
}
}
.three-debug-panel-1 {
position: fixed;
padding-top: 300px;