Skip to content

Commit

Permalink
Merge pull request #6936 from Sage/FE-6783-label-rtl
Browse files Browse the repository at this point in the history
refactor(label): convert enzyme tests to RTL
  • Loading branch information
nuria1110 authored Sep 10, 2024
2 parents ab28819 + 32afa73 commit c990068
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 360 deletions.
18 changes: 0 additions & 18 deletions src/__internal__/label/__snapshots__/label.spec.tsx.snap

This file was deleted.

339 changes: 0 additions & 339 deletions src/__internal__/label/label.spec.tsx

This file was deleted.

4 changes: 1 addition & 3 deletions src/__internal__/label/label.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ export interface StyledLabelContainerProps {
width?: number;
}

const DEFAULT_CONTAINER_WIDTH = 30;

export const StyledLabelContainer = styled.div<StyledLabelContainerProps>`
display: flex;
align-items: center;
Expand All @@ -66,7 +64,7 @@ export const StyledLabelContainer = styled.div<StyledLabelContainerProps>`
padding-left: var(${pl === 1 ? "--spacing100" : "--spacing200"});
`};
justify-content: ${align === "right" ? "flex-end" : "flex-start"};
width: ${width || DEFAULT_CONTAINER_WIDTH}%;
width: ${width}%;
`}
${({ optional }) =>
Expand Down
Loading

0 comments on commit c990068

Please sign in to comment.