mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Fix default color for separator component (#3137)
* Fix default color for separator component * fix test
This commit is contained in:
@@ -20,6 +20,7 @@ import { recipe as radioGroup } from './radio-group.recipe';
|
||||
import { recipe as radiomark } from './radiomark.recipe';
|
||||
import { recipe as ratingGroup } from './rating-group.recipe';
|
||||
import { recipe as select } from './select.recipe';
|
||||
import { recipe as separator } from './separator.recipe';
|
||||
import { recipe as skeleton } from './skeleton.recipe';
|
||||
import { recipe as spinner } from './spinner.recipe';
|
||||
import { recipe as stat } from './stat.recipe';
|
||||
@@ -41,6 +42,7 @@ export const recipes = {
|
||||
radiomark,
|
||||
skeleton,
|
||||
spinner,
|
||||
separator,
|
||||
textarea,
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { defineRecipe } from '@chakra-ui/react';
|
||||
|
||||
export const recipe = defineRecipe({
|
||||
className: 'chakra-separator',
|
||||
base: {
|
||||
display: 'block',
|
||||
borderColor: 'border.divider',
|
||||
},
|
||||
});
|
||||
@@ -63,7 +63,7 @@ const BlockDetailsZilliqaQuorumCertificate = ({ data }: Props) => {
|
||||
</Grid>
|
||||
{ data.nested_quorum_certificates && data.nested_quorum_certificates.length > 0 && (
|
||||
<>
|
||||
<Separator mt={ 2 } w="100%" borderColor="border.divider"/>
|
||||
<Separator mt={ 2 } w="100%"/>
|
||||
<AccordionRoot
|
||||
multiple
|
||||
w="100%"
|
||||
|
||||
@@ -181,7 +181,6 @@ const Content = ({
|
||||
</Flex>
|
||||
<Separator
|
||||
orientation="vertical"
|
||||
borderColor="border.divider"
|
||||
mx={{ base: 4, md: 8 }}
|
||||
/>
|
||||
<Flex
|
||||
|
||||
@@ -77,7 +77,6 @@ const RewardsStreakModal = ({ open, onOpenChange, currentStreak, badges = EMPTY_
|
||||
<Separator
|
||||
display={{ base: 'none', lg: 'block' }}
|
||||
orientation="vertical"
|
||||
borderColor="border.divider"
|
||||
/>
|
||||
) }
|
||||
</>
|
||||
|
||||
@@ -22,7 +22,7 @@ const NavLinkGroup = ({ item }: Props) => {
|
||||
const hasGroups = item.subItems.some((subItem) => Array.isArray(subItem));
|
||||
|
||||
const content = hasGroups ? (
|
||||
<HStack separator={ <Separator/> } alignItems="flex-start">
|
||||
<HStack separator={ <Separator/> } alignItems="stretch">
|
||||
{ item.subItems.map((subItem, index) => {
|
||||
if (!Array.isArray(subItem)) {
|
||||
return <NavLink key={ subItem.text } item={ subItem }/>;
|
||||
|
||||
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 35 KiB |
@@ -53,7 +53,7 @@ const TopBar = () => {
|
||||
</HStack>
|
||||
<HStack
|
||||
alignItems="center"
|
||||
separator={ <Separator mx={{ base: 2, lg: 3 }} height={ 4 } orientation="vertical" borderColor="border.divider"/> }
|
||||
separator={ <Separator mx={{ base: 2, lg: 3 }} height={ 4 }/> }
|
||||
>
|
||||
{ (hasAddChainButton || hasDeFiDropdown) && (
|
||||
<HStack>
|
||||
|
||||
Reference in New Issue
Block a user