Skip to content

Commit

Permalink
fix(Section): raisedHeader border styles
Browse files Browse the repository at this point in the history
  • Loading branch information
zettca committed Jan 10, 2025
1 parent 935adda commit b4513d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/core/src/Section/Section.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default meta;
export const Main: StoryObj<HvSectionProps> = {
args: {
title: "Section Title",
raisedHeader: false,
expandable: false,
defaultExpanded: true,
},
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/Section/Section.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const { staticClasses, useClasses } = createClasses("HvSection", {
header: {
display: "flex",
alignItems: "center",
borderColor: "inherit",
position: "relative",
minHeight: theme.sizes.sm,
padding: theme.space.sm,
Expand All @@ -36,6 +37,7 @@ export const { staticClasses, useClasses } = createClasses("HvSection", {
raisedHeader: {
"& $header": {
zIndex: 1,
borderBottomWidth: 1,
boxShadow: theme.colors.shadow,
},
"& $content": {
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/TableSection/TableSection.styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const { staticClasses, useClasses } = createClasses("HvTableSection", {
header: {
// Only apply the border to divide the header and content when both are displayed
"+ div": {
borderTop: `1px solid ${theme.colors.atmo3}`,
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
},
Expand Down

0 comments on commit b4513d7

Please sign in to comment.