Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added customization for padding inside accordion item rule #595

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading