side-tray-styles-patch

This commit is contained in:
Kurt Hutten
2021-09-18 17:27:36 +10:00
parent f3201cfd97
commit 5f8862b4d2
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 Svg from 'src/components/Svg/Svg'
import { import {
sidebarTopConfig, sidebarTopConfig,
@@ -10,9 +10,11 @@ import { useIdeContext } from 'src/helpers/hooks/useIdeContext'
function TabToggle({ item, className = '', active, onChange, onClick }) { function TabToggle({ item, className = '', active, onChange, onClick }) {
return ( return (
<label <label
className={`tabToggle${item.disabled ? ' disabled' : ''}${ className={getActiveClasses({
active ? ' active' : '' 'bg-ch-pink-800 text-ch-pink-300 bg-opacity-30': active,
} ${className}`} 'text-ch-gray-550 cursor-not-allowed': item.disabled,
[`text-ch-gray-300 p-3 mb-1 flex justify-center ${className}`]: true,
})}
> >
<input <input
name="sidebar-tabs" 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 { .three-debug-panel-1 {
position: fixed; position: fixed;
padding-top: 300px; padding-top: 300px;