Skip to content

Commit

Permalink
fix: added customization for padding inside accordion item rule (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArushKapoorJuspay authored Sep 2, 2024
1 parent 0b8c9cd commit a251de5
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/BrutalTheme.res
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ let brutalRules = (theme: CardThemeType.themeClass) =>
"color": theme.colorBackgroundText,
"transition": "height 1s ease",
"borderColor": `#000000 !important`,
"padding": "20px",
},
".AccordionMore": {
"backgroundColor": theme.colorBackground,
Expand Down
1 change: 1 addition & 0 deletions src/CharcoalTheme.res
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ let charcoalRules = theme =>
"backgroundColor": theme.colorBackground,
"color": theme.colorTextSecondary,
"transition": "height 1s ease",
"padding": "20px",
},
".AccordionMore": {
"backgroundColor": theme.colorBackground,
Expand Down
1 change: 0 additions & 1 deletion src/Components/Accordion.res
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ let make = (
style={
minHeight: "60px",
width: "-webkit-fill-available",
padding: "20px",
cursor: "pointer",
marginBottom: layoutClass.spacedAccordionItems ? themeObj.spacingAccordionItem : "",
border: `1px solid ${themeObj.borderColor}`,
Expand Down
1 change: 0 additions & 1 deletion src/Components/AccordionContainer.res
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module Loader = {
},
borderTopStyle: {i == 0 && !layoutClass.spacedAccordionItems ? "hidden" : "solid"},
width: "100%",
paddingLeft: "25px",
marginBottom: layoutClass.spacedAccordionItems ? themeObj.spacingAccordionItem : "",
cursor: "pointer",
}>
Expand Down
1 change: 1 addition & 0 deletions src/DefaultTheme.res
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ let defaultRules = theme =>
"color": theme.colorTextSecondary,
"transition": "height 1s ease",
"boxShadow": "0px 1px 1px rgb(0 0 0 / 3%), 0px 3px 6px rgb(0 0 0 / 2%)",
"padding": "20px",
},
".AccordionMore": {
"backgroundColor": theme.colorBackground,
Expand Down
1 change: 1 addition & 0 deletions src/MidnightTheme.res
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ let midnightRules = theme =>
"transition": "height 1s ease",
"color": "#e0e0e0",
"boxShadow": "0px 2px 4px rgb(0 0 0 / 50%), 0px 1px 6px rgb(0 0 0 / 25%)",
"padding": "20px",
},
".AccordionItem:hover": {
"color": theme.colorTextSecondary,
Expand Down
1 change: 1 addition & 0 deletions src/SoftTheme.res
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ let softRules = theme =>
"color": theme.colorTextSecondary,
"transition": "background .15s ease, border .15s ease, box-shadow .15s ease",
"boxShadow": `4px 4px 5px #353637, -4px -4px 5px #434445`,
"padding": "20px",
},
".AccordionItem--selected": {
"color": theme.colorPrimary,
Expand Down

0 comments on commit a251de5

Please sign in to comment.