Skip to content

Commit

Permalink
Styled component bug cleanup (#3540)
Browse files Browse the repository at this point in the history
* Styled component bug cleanup

* changeset

* test(vrt): update snapshots

---------

Co-authored-by: joshblack <joshblack@users.noreply.github.com>
  • Loading branch information
kendallgassner and joshblack authored Jul 27, 2023
1 parent 7716b31 commit a90350c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changeset/hot-planes-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@primer/react': patch
---

Css styled block fixes

<!-- Changed components: DataTable, Timeline -->
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/DataTable/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ const StyledTable = styled.table<React.ComponentPropsWithoutRef<'table'>>`
display: grid;
grid-template-columns: subgrid;
grid-column: -1 /1;
}
}
`

Expand Down
2 changes: 1 addition & 1 deletion src/Timeline/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const TimelineBody = styled.div<SxProp>`
`

const TimelineBreak = styled.div<SxProp>`
position: relative
position: relative;
z-index: 1;
height: 24px;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/deprecated/ActionList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const LeadingVisualContainer = styled(ColoredVisualContainer)`
`

const TrailingContent = styled(ColoredVisualContainer)`
color: ${({variant, disabled}) => getItemVariant(variant, disabled).annotationColor}};
color: ${({variant, disabled}) => getItemVariant(variant, disabled).annotationColor};
margin-left: ${get('space.2')};
margin-right: 0;
width: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/deprecated/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Button = styled(ButtonBase)<ButtonBaseProps & SxProp>`
color: ${get('colors.btn.text')};
background-color: ${get('colors.btn.bg')};
border: 1px solid ${get('colors.btn.border')};
box-shadow: ${get('shadows.btn.shadow')}, ${get('shadows.btn.insetShadow')}};
box-shadow: ${get('shadows.btn.shadow')}, ${get('shadows.btn.insetShadow')};
&:hover {
background-color: ${get('colors.btn.hoverBg')};
Expand Down

0 comments on commit a90350c

Please sign in to comment.