Skip to content

Commit

Permalink
[CCUBE-1629][MAHI]Migrate toggle composite section with design and lo…
Browse files Browse the repository at this point in the history
…gic changes
  • Loading branch information
mahidhar-reddy09 committed Dec 3, 2024
1 parent 629b527 commit 6c0a06e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/toggle/toggle.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const Container = styled.div<ContainerStyleProps>`
case "no-border": {
if (props.$error) {
return css`
border-color: ${Colour["border-error-strong"]};
border-color: ${Colour["border-error"]};
`;
}
Expand Down Expand Up @@ -118,7 +118,11 @@ export const Container = styled.div<ContainerStyleProps>`
default: {
if (props.$error) {
return css`
border-color: ${Colour["border-error-strong"]};
border-color: ${Colour["border-error"]};
&:has(${HeaderContainer}:hover) {
background: ${Colour["bg-hover-subtle"]};
}
`;
}
Expand All @@ -141,8 +145,7 @@ export const Container = styled.div<ContainerStyleProps>`
border-color: ${Colour["border-selected"]};
background: ${Colour["bg-selected"]};
:hover {
border-color: ${Colour["border-selected-hover"]};
&:has(${HeaderContainer}:hover) {
background: ${Colour["bg-selected-hover"]};
}
`;
Expand All @@ -151,8 +154,7 @@ export const Container = styled.div<ContainerStyleProps>`
return css`
border-color: ${Colour.border};
:hover {
border-color: ${Colour.border};
&:has(${HeaderContainer}:hover) {
background: ${Colour["bg-hover-subtle"]};
}
`;
Expand Down

0 comments on commit 6c0a06e

Please sign in to comment.