@@ -747,8 +747,10 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
747747 { viewOptions . map ( ( option ) => (
748748 < button
749749 key = { option . value }
750- className = { `px-2.5 py-2 text-sm ${
751- currentView === option . value ? "bg-[#356C99] text-white" : "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200"
750+ className = { `px-2.5 py-2 text-sm transition-colors duration-150 ${
751+ currentView === option . value
752+ ? "bg-[#356C99] text-white"
753+ : "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600"
752754 } `}
753755 onClick = { ( ) => toggleView ( option ) }
754756 >
@@ -760,7 +762,7 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
760762 buttonLabel = "Metrics"
761763 options = { metricsOptions }
762764 executeAction = { toggleView }
763- className = "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 py-2 px-3 rounded-none shadow-none w-[100px] justify-between border-l border-gray-300 dark:border-gray-600"
765+ className = "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 py-2 px-3 rounded-none shadow-none w-[100px] justify-between border-l border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-600 transition-colors duration-150 "
764766 />
765767 ) }
766768 </ div >
@@ -774,7 +776,7 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
774776 buttonLabel = "Structural operation"
775777 options = { STRUCTURAL_OPERATIONS }
776778 executeAction = { executeAction }
777- className = "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 py-2 px-3 rounded-none shadow-none w-[170px] justify-between"
779+ className = "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 py-2 px-3 rounded-none shadow-none w-[170px] justify-between hover:bg-gray-100 dark:hover:bg-gray-600 transition-colors duration-150 "
778780 />
779781 </ div >
780782 </ div >
@@ -786,8 +788,10 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
786788 { solverOptions . map ( ( option ) => (
787789 < button
788790 key = { option . value }
789- className = { `px-2.5 py-2 text-sm min-w-[60px] ${
790- selectedSolver === option . value ? "bg-[#356C99] text-white" : "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200"
791+ className = { `px-2.5 py-2 text-sm min-w-[60px] transition-colors duration-150 ${
792+ selectedSolver === option . value
793+ ? "bg-[#356C99] text-white"
794+ : "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600"
791795 } `}
792796 onClick = { ( ) => setSelectedSolver ( option . value ) }
793797 >
@@ -798,7 +802,7 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
798802 buttonLabel = "Analysis operation"
799803 options = { operationsForSolver ( selectedSolver ) }
800804 executeAction = { executeAction }
801- className = "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 py-2 px-3 rounded-none shadow-none w-[170px] justify-between border-l"
805+ className = "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 py-2 px-3 rounded-none shadow-none w-[170px] justify-between border-l border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-600 transition-colors duration-150 "
802806 />
803807 </ div >
804808 </ div >
@@ -808,17 +812,21 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
808812 < div className = "h-px bg-gray-300 dark:bg-gray-600 w-full" />
809813 < div className = "flex items-stretch rounded overflow-hidden border border-gray-300 dark:border-gray-600" >
810814 < button
811- className = { `px-2.5 py-2 text-sm ${
812- computeBackend === WASM ? "bg-[#356C99] text-white" : "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200"
815+ className = { `px-2.5 py-2 text-sm transition-colors duration-150 ${
816+ computeBackend === WASM
817+ ? "bg-[#356C99] text-white"
818+ : "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600"
813819 } `}
814820 onClick = { ( ) => selectBackend ( WASM ) }
815821 title = "Run analysis operations in your browser (WebAssembly)"
816822 >
817823 In-browser
818824 </ button >
819825 < button
820- className = { `px-2.5 py-2 text-sm border-l border-gray-300 dark:border-gray-600 ${
821- computeBackend === REST ? "bg-[#356C99] text-white" : "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200"
826+ className = { `px-2.5 py-2 text-sm border-l border-gray-300 dark:border-gray-600 transition-colors duration-150 ${
827+ computeBackend === REST
828+ ? "bg-[#356C99] text-white"
829+ : "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600"
822830 } `}
823831 onClick = { ( ) => selectBackend ( REST ) }
824832 title = "Run analysis operations on a remote flamapy-rest API"
@@ -827,11 +835,14 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
827835 </ button >
828836 { computeBackend === REST && (
829837 < button
830- className = "px-2.5 py-2 text-sm border-l border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200"
838+ className = "px-2.5 py-2 text-sm border-l border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 transition-colors duration-150 "
831839 onClick = { ( ) => setIsBackendModalOpen ( true ) }
832840 title = { `Configure the API URL (current: ${ restApiUrl } )` }
833841 >
834- ⚙
842+ < svg className = "w-4 h-4" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" aria-hidden = "true" >
843+ < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
844+ < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
845+ </ svg >
835846 </ button >
836847 ) }
837848 </ div >
@@ -840,12 +851,12 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
840851 < div className = "flex flex-col gap-1 whitespace-nowrap" >
841852 < span className = "text-[11px] text-gray-600 dark:text-gray-300 text-center w-full" > Export</ span >
842853 < div className = "h-px bg-gray-300 dark:bg-gray-600 w-full" />
843- < div className = "flex rounded overflow-hidden border border-gray-300" >
854+ < div className = "flex rounded overflow-hidden border border-gray-300 dark:border-gray-600 " >
844855 < DropdownMenu
845856 buttonLabel = "Export"
846857 options = { EXPORT_OPERATIONS }
847858 executeAction = { downloadFile }
848- className = "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 py-2 px-3 rounded-none shadow-none w-[120px] justify-between"
859+ className = "bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-200 py-2 px-3 rounded-none shadow-none w-[120px] justify-between hover:bg-gray-100 dark:hover:bg-gray-600 transition-colors duration-150 "
849860 />
850861 </ div >
851862 </ div >
@@ -938,20 +949,28 @@ function EditorPage({ selectedFile, setNavControls, darkMode }) {
938949 < TreeView treeData = { featureTree } executeAction = { executeActionWithConf } operations = { CONFIG_OPERATIONS } history = { history } />
939950 { currentView !== "configurator" && (
940951 < button
941- className = "absolute right-[-12px] top-1/2 -translate-y-1/2 bg-gray-300 dark:bg-gray-600 text-gray-700 dark:text-gray-200 text-[10px] px-1 py-10 rounded-r shadow hover:bg-gray-400 dark:hover:bg-gray-500 rotate-180 [writing-mode:vertical-rl]"
952+ aria-label = "Hide configuration panel"
953+ title = "Hide configuration panel"
954+ className = "absolute right-[-14px] top-1/2 -translate-y-1/2 z-20 flex items-center justify-center w-7 h-10 bg-gray-200 dark:bg-gray-600 text-gray-600 dark:text-gray-300 rounded-r shadow hover:bg-gray-300 dark:hover:bg-gray-500 transition-colors duration-150"
942955 onClick = { ( ) => setShowConfiguratorPanel ( false ) }
943956 >
944- Hide configuration panel
957+ < svg className = "w-4 h-4" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" aria-hidden = "true" >
958+ < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M15 19l-7-7 7-7" />
959+ </ svg >
945960 </ button >
946961 ) }
947962 </ div >
948963 ) }
949964 { ! showConfiguratorPanel && currentView !== "configurator" && (
950965 < button
951- className = "absolute left-0 top-1/2 -translate-y-1/2 bg-gray-300 dark:bg-gray-600 text-gray-700 dark:text-gray-200 text-[10px] px-1 py-10 rounded-r shadow hover:bg-gray-400 dark:hover:bg-gray-500 z-40 rotate-180 [writing-mode:vertical-rl]"
966+ aria-label = "Show configuration panel"
967+ title = "Show configuration panel"
968+ className = "absolute left-0 top-1/2 -translate-y-1/2 z-40 flex items-center justify-center w-7 h-10 bg-gray-200 dark:bg-gray-600 text-gray-600 dark:text-gray-300 rounded-r shadow hover:bg-gray-300 dark:hover:bg-gray-500 transition-colors duration-150"
952969 onClick = { ( ) => setShowConfiguratorPanel ( true ) }
953970 >
954- Show configuration panel
971+ < svg className = "w-4 h-4" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" aria-hidden = "true" >
972+ < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M9 5l7 7-7 7" />
973+ </ svg >
955974 </ button >
956975 ) }
957976
0 commit comments