Skip to content

Commit 725c95f

Browse files
inanc-canHaarolean
andauthored
FE: Chore: Refactor toggle button (#3721)
Co-authored-by: Roman Zabaluev <[email protected]>
1 parent 3ef5a9f commit 725c95f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

kafka-ui-react-app/src/components/common/Switch/Switch.styled.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ export const StyledSlider = styled.span<Props>`
3939
transition: 0.4s;
4040
border-radius: 20px;
4141
42+
:hover {
43+
background-color: ${({ theme }) => theme.switch.hover};
44+
}
45+
4246
&::before {
4347
position: absolute;
4448
content: '';

kafka-ui-react-app/src/theme/theme.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,13 @@ const baseTheme = {
235235
color: Colors.neutral[90],
236236
},
237237
switch: {
238-
unchecked: Colors.brand[30],
238+
unchecked: Colors.neutral[20],
239+
hover: Colors.neutral[40],
239240
checked: Colors.brand[50],
240241
circle: Colors.neutral[0],
241242
disabled: Colors.neutral[10],
242243
checkedIcon: {
243-
backgroundColor: Colors.neutral[70],
244+
backgroundColor: Colors.neutral[10],
244245
},
245246
},
246247
pageLoader: {

0 commit comments

Comments
 (0)