Skip to content

Commit 64dacbc

Browse files
authored
Fix default color for separator component (#3137)
* Fix default color for separator component * fix test
1 parent ffccd65 commit 64dacbc

File tree

8 files changed

+14
-5
lines changed

8 files changed

+14
-5
lines changed

toolkit/theme/recipes/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { recipe as radioGroup } from './radio-group.recipe';
2020
import { recipe as radiomark } from './radiomark.recipe';
2121
import { recipe as ratingGroup } from './rating-group.recipe';
2222
import { recipe as select } from './select.recipe';
23+
import { recipe as separator } from './separator.recipe';
2324
import { recipe as skeleton } from './skeleton.recipe';
2425
import { recipe as spinner } from './spinner.recipe';
2526
import { recipe as stat } from './stat.recipe';
@@ -41,6 +42,7 @@ export const recipes = {
4142
radiomark,
4243
skeleton,
4344
spinner,
45+
separator,
4446
textarea,
4547
};
4648

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineRecipe } from '@chakra-ui/react';
2+
3+
export const recipe = defineRecipe({
4+
className: 'chakra-separator',
5+
base: {
6+
display: 'block',
7+
borderColor: 'border.divider',
8+
},
9+
});

ui/block/details/BlockDetailsZilliqaQuorumCertificate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const BlockDetailsZilliqaQuorumCertificate = ({ data }: Props) => {
6363
</Grid>
6464
{ data.nested_quorum_certificates && data.nested_quorum_certificates.length > 0 && (
6565
<>
66-
<Separator mt={ 2 } w="100%" borderColor="border.divider"/>
66+
<Separator mt={ 2 } w="100%"/>
6767
<AccordionRoot
6868
multiple
6969
w="100%"

ui/marketplace/essentialDapps/revoke/components/Content.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ const Content = ({
181181
</Flex>
182182
<Separator
183183
orientation="vertical"
184-
borderColor="border.divider"
185184
mx={{ base: 4, md: 8 }}
186185
/>
187186
<Flex

ui/rewards/dashboard/streakModal/RewardsStreakModal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ const RewardsStreakModal = ({ open, onOpenChange, currentStreak, badges = EMPTY_
7777
<Separator
7878
display={{ base: 'none', lg: 'block' }}
7979
orientation="vertical"
80-
borderColor="border.divider"
8180
/>
8281
) }
8382
</>

ui/snippets/navigation/horizontal/NavLinkGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const NavLinkGroup = ({ item }: Props) => {
2222
const hasGroups = item.subItems.some((subItem) => Array.isArray(subItem));
2323

2424
const content = hasGroups ? (
25-
<HStack separator={ <Separator/> } alignItems="flex-start">
25+
<HStack separator={ <Separator/> } alignItems="stretch">
2626
{ item.subItems.map((subItem, index) => {
2727
if (!Array.isArray(subItem)) {
2828
return <NavLink key={ subItem.text } item={ subItem }/>;
154 Bytes
Loading

ui/snippets/topBar/TopBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const TopBar = () => {
5353
</HStack>
5454
<HStack
5555
alignItems="center"
56-
separator={ <Separator mx={{ base: 2, lg: 3 }} height={ 4 } orientation="vertical" borderColor="border.divider"/> }
56+
separator={ <Separator mx={{ base: 2, lg: 3 }} height={ 4 }/> }
5757
>
5858
{ (hasAddChainButton || hasDeFiDropdown) && (
5959
<HStack>

0 commit comments

Comments
 (0)