Skip to content

Commit

Permalink
fix: shadow color
Browse files Browse the repository at this point in the history
  • Loading branch information
DaminiPandey committed Dec 8, 2023
1 parent 7bbe00e commit 199d665
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ function App(){
type="multiple"
m="$5"
borderWidth={1}
shadowColor="transparent"
sx={{
borderColor: '$borderLight300',
_dark: {
Expand Down Expand Up @@ -704,7 +705,7 @@ The borderRadius prop can be used to create rounded corners for both the Accordi
code: `
function App(){
return (
<Accordion m="$5" width="80%" maxWidth={640}>
<Accordion m="$5" width="80%" maxWidth={640} shadowColor="transparent">
<AccordionItem value="item-1" borderRadius="$lg">
<AccordionHeader>
<AccordionTrigger>
Expand Down Expand Up @@ -1180,8 +1181,8 @@ You can make the Accordion component controlled by passing the value prop to the
function App(){
const [selectedValues, setSelecedValues] = React.useState(['item-1', 'item-2']);
return (
<Accordion m="$5" variant="unfilled" width="90%" type="multiple" value={selectedValues} onValueChange={(item) => setSelecedValues(item)}>
<AccordionItem value="item-1" borderBottomWidth={1}
<Accordion m="$5" variant="unfilled" width="95%" type="multiple" value={selectedValues} onValueChange={(item) => setSelecedValues(item)}>
<AccordionItem value="item-1" borderTopWidth={1} borderBottomWidth={1}
sx={{
borderColor: '$borderLight300',
_dark: {
Expand Down Expand Up @@ -1214,13 +1215,7 @@ function App(){
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2" borderBottomWidth={1}
sx={{
borderColor: '$borderLight300',
_dark: {
borderColor: '$borderDark700',
},
}}
<AccordionItem value="item-2"
>
<AccordionHeader>
<AccordionTrigger>
Expand All @@ -1246,7 +1241,13 @@ function App(){
</AccordionContentText>
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-3">
<AccordionItem value="item-3" borderTopWidth={1} borderBottomWidth={1}
sx={{
borderColor: '$borderLight300',
_dark: {
borderColor: '$borderDark700',
},
}}>
<AccordionHeader>
<AccordionTrigger>
{({ isExpanded }) => {
Expand Down

0 comments on commit 199d665

Please sign in to comment.