@@ -1955,46 +1955,46 @@ function App() {
1955
1955
< div
1956
1956
key = { i }
1957
1957
onClick = { ( ) => setSelectedRoleBindingIndex ( i ) }
1958
- className = { `p-2 border rounded-lg cursor-pointer transition-all duration-200 hover:shadow-md hover:bg-blue-50 focus-within:ring-2 focus-within:ring-blue-200 outline-none group
1958
+ className = { `p-2 border rounded-lg cursor-pointer transition-all duration-200 hover:shadow-md hover:bg-blue-50 focus-within:ring-2 focus-within:ring-blue-200 outline-none group
1959
1959
${ isSelected
1960
1960
? rb . isClusterRoleBinding
1961
- ? 'border-blue-500 bg-blue-50 shadow-md'
1962
- : 'border-purple-500 bg-purple-50 shadow-md'
1963
- : 'border-gray-200 bg-white hover:border-blue-300' }
1961
+ ? 'border-blue-500 bg-blue-50 shadow-md dark:border-blue-600 dark:bg-blue-600 dark:shadow-blue-600 '
1962
+ : 'border-purple-500 bg-purple-50 shadow-md dark:border-purple-600 dark:bg-purple-600 dark:shadow-purple-600 '
1963
+ : 'border-gray-200 bg-white hover:border-blue-300 dark:border-gray-600 dark:bg-gray-700 dark:hover:border-blue-300 dark:hover:bg-gray-600 ' }
1964
1964
` }
1965
1965
tabIndex = { 0 }
1966
1966
aria-label = { `RoleBinding ${ rb . name || '(no name)' } ` }
1967
1967
>
1968
1968
< div className = "flex items-center space-x-2 min-w-0 flex-1 mb-1 justify-between" >
1969
1969
< div className = "flex items-center space-x-2 min-w-0" >
1970
1970
< div className = "flex-shrink-0" >
1971
- < div className = { `w-7 h-7 rounded-full flex items-center justify-center border ${ rb . isClusterRoleBinding ? 'bg-blue-100 border-blue-300' : 'bg-purple-100 border-purple-300' } ` } >
1971
+ < div className = { `w-7 h-7 rounded-full flex items-center justify-center border ${ rb . isClusterRoleBinding ? 'bg-blue-100 border-blue-300 dark:border-blue-600 dark:bg-blue-600 dark:shadow-blue-600 ' : 'bg-purple-100 border-purple-300 dark:border-purple-600 dark:bg-purple-600 dark:shadow-purple-600 ' } ` } >
1972
1972
{ rb . isClusterRoleBinding ? (
1973
- < Key className = "w-4 h-4 text-blue-600" />
1973
+ < Key className = "w-4 h-4 text-blue-600 dark:text-blue-300 " />
1974
1974
) : (
1975
- < Key className = "w-4 h-4 text-purple-600" />
1975
+ < Key className = "w-4 h-4 text-purple-600 dark:text-purple-300 " />
1976
1976
) }
1977
1977
</ div >
1978
1978
</ div >
1979
1979
< h4
1980
- className = "text-base font-bold text-gray-900 truncate group-hover:text-blue-700"
1980
+ className = "text-base font-bold text-gray-900 truncate group-hover:text-blue-700 dark:text-gray-100 dark:group-hover:text-blue-400 "
1981
1981
title = { rb . name || '(no name)' }
1982
1982
>
1983
- { rb . name || < span className = "italic text-gray-400" > (no name)</ span > }
1983
+ { rb . name || < span className = "italic text-gray-400 dark:text-gray-300 " > (no name)</ span > }
1984
1984
</ h4 >
1985
1985
</ div >
1986
1986
< div className = "flex items-center space-x-1 flex-shrink-0 ml-2" >
1987
1987
{ deleteRoleBindingConfirm === i ? (
1988
1988
< div className = "flex items-center space-x-1" onClick = { e => e . stopPropagation ( ) } >
1989
1989
< button
1990
1990
onClick = { e => { e . stopPropagation ( ) ; setDeleteRoleBindingConfirm ( null ) ; } }
1991
- className = "px-1.5 py-0.5 text-[10px] bg-gray-100 text-gray-600 rounded hover:bg-gray-200 transition-colors duration-200"
1991
+ className = "px-1.5 py-0.5 text-[10px] bg-gray-100 text-gray-600 rounded hover:bg-gray-200 transition-colors duration-200 dark:bg-gray-600 dark:text-gray-300 dark:hover:bg-gray-700 dark:hover:text-gray-300 "
1992
1992
>
1993
1993
Cancel
1994
1994
</ button >
1995
1995
< button
1996
1996
onClick = { e => { e . stopPropagation ( ) ; handleDeleteRoleBinding ( i ) ; setDeleteRoleBindingConfirm ( null ) ; } }
1997
- className = "px-1.5 py-0.5 text-[10px] bg-red-600 text-white rounded hover:bg-red-700 transition-colors duration-200 flex items-center space-x-1"
1997
+ className = "px-1.5 py-0.5 text-[10px] bg-red-600 text-white rounded hover:bg-red-700 transition-colors duration-200 flex items-center space-x-1 dark:bg-red-700 dark:hover:bg-red-800 "
1998
1998
>
1999
1999
< AlertTriangle className = "w-3 h-3" />
2000
2000
< span > Delete</ span >
@@ -2004,23 +2004,23 @@ function App() {
2004
2004
< >
2005
2005
< button
2006
2006
onClick = { e => { e . stopPropagation ( ) ; handleEditRoleBinding ( i ) ; } }
2007
- className = "p-1 text-gray-400 hover:text-blue-600 rounded transition-colors duration-200"
2007
+ className = "p-1 text-gray-400 hover:text-blue-600 rounded transition-colors duration-200 dark:text-gray-300 dark:hover:text-blue-400 "
2008
2008
title = "Edit RoleBinding"
2009
2009
aria-label = "Edit RoleBinding"
2010
2010
>
2011
2011
< Settings className = "w-4 h-4" />
2012
2012
</ button >
2013
2013
< button
2014
2014
onClick = { e => { e . stopPropagation ( ) ; handleDuplicateRoleBinding ( i ) ; } }
2015
- className = "p-1 text-gray-400 hover:text-green-600 rounded transition-colors duration-200"
2015
+ className = "p-1 text-gray-400 hover:text-green-600 rounded transition-colors duration-200 dark:text-gray-300 dark:hover:text-green-400 "
2016
2016
title = "Duplicate RoleBinding"
2017
2017
aria-label = "Duplicate RoleBinding"
2018
2018
>
2019
2019
< Copy className = "w-4 h-4" />
2020
2020
</ button >
2021
2021
< button
2022
2022
onClick = { e => { e . stopPropagation ( ) ; setDeleteRoleBindingConfirm ( i ) ; } }
2023
- className = "p-1 text-gray-400 hover:text-red-600 rounded transition-colors duration-200"
2023
+ className = "p-1 text-gray-400 hover:text-red-600 rounded transition-colors duration-200 dark:text-gray-300 dark:hover:text-red-400 "
2024
2024
title = "Delete RoleBinding"
2025
2025
aria-label = "Delete RoleBinding"
2026
2026
>
@@ -2031,14 +2031,14 @@ function App() {
2031
2031
</ div >
2032
2032
</ div >
2033
2033
< div className = "pl-9" >
2034
- < div className = "flex items-center space-x-1 text-[11px] text-gray-500 font-medium mb-0.5" >
2034
+ < div className = "flex items-center space-x-1 text-[11px] text-gray-500 dark:text-gray-300 font-medium mb-0.5" >
2035
2035
< span > { rb . isClusterRoleBinding ? 'ClusterRoleBinding' : 'RoleBinding' } </ span >
2036
2036
< span > •</ span >
2037
2037
< span > { rb . subjects . length } subj</ span >
2038
2038
</ div >
2039
- < div className = "flex items-center space-x-1 text-[11px] text-gray-600 mb-0.5" >
2039
+ < div className = "flex items-center space-x-1 text-[11px] text-gray-600 dark:text-gray-300 mb-0.5" >
2040
2040
< span className = "truncate" title = { `Role: ${ rb . roleRef . name } (${ rb . roleRef . kind } )` } >
2041
- < span className = "font-semibold" > Role:</ span > { rb . roleRef . name } < span className = "text-gray-400" > ({ rb . roleRef . kind } )</ span >
2041
+ < span className = "font-semibold" > Role:</ span > { rb . roleRef . name } < span className = "text-gray-400 dark:text-gray-300 " > ({ rb . roleRef . kind } )</ span >
2042
2042
</ span >
2043
2043
{ ! rb . isClusterRoleBinding && rb . namespace && < >
2044
2044
< span > •</ span >
@@ -2047,16 +2047,16 @@ function App() {
2047
2047
</ div >
2048
2048
< div className = "flex items-center space-x-1" >
2049
2049
{ ! rb . isClusterRoleBinding && (
2050
- < span className = "px-1.5 py-0.5 bg-purple-100 text-purple-800 rounded text-[10px] font-semibold tracking-wide border border-purple-200" > { rb . namespace } </ span >
2050
+ < span className = "px-1.5 py-0.5 bg-purple-100 text-purple-800 rounded text-[10px] font-semibold tracking-wide border border-purple-200 dark:bg-purple-600 dark:text-purple-100 " > { rb . namespace } </ span >
2051
2051
) }
2052
2052
{ rb . isClusterRoleBinding && (
2053
- < span className = "px-1.5 py-0.5 bg-blue-100 text-blue-800 rounded text-[10px] font-semibold tracking-wide border border-blue-200" > cluster-wide</ span >
2053
+ < span className = "px-1.5 py-0.5 bg-blue-100 text-blue-800 rounded text-[10px] font-semibold tracking-wide border border-blue-200 dark:bg-blue-600 dark:text-blue-100 " > cluster-wide</ span >
2054
2054
) }
2055
2055
</ div >
2056
2056
</ div >
2057
2057
{ /* Delete confirmation warning */ }
2058
2058
{ deleteRoleBindingConfirm === i && (
2059
- < div className = "mt-1 p-1 bg-red-50 border border-red-200 rounded text-[10px] text-red-700" >
2059
+ < div className = "mt-1 p-1 bg-red-50 border border-red-200 rounded text-[10px] text-red-700 dark:bg-red-600 dark:text-red-100 " >
2060
2060
< div className = "flex items-center space-x-1 mb-1" >
2061
2061
< AlertTriangle className = "w-3 h-3" />
2062
2062
< span className = "font-medium" > Are you sure?</ span >
@@ -2226,7 +2226,7 @@ function App() {
2226
2226
< button
2227
2227
type = "button"
2228
2228
onClick = { ( ) => setShowForm ( false ) }
2229
- className = "px-6 py-2.5 bg-white border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50"
2229
+ className = "px-6 py-2.5 bg-white border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-500 "
2230
2230
>
2231
2231
Cancel
2232
2232
</ button >
0 commit comments