Skip to content

Commit

Permalink
style(contrast results): adjust styles of contrast levels
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGarrixen committed Jan 16, 2024
1 parent c232b78 commit 587a95a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
levels: css({
display: "grid",
rowGap: "5",
columnGap: "10",
columnGap: "8",
md: { flex: 1 },
sm: {
gridTemplateColumns: "repeat(2, 1fr)",
Expand Down
2 changes: 1 addition & 1 deletion src/components/contrast-results/contrast-level.styled.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css } from "@root/styled-system/css";

export default {
root: css({
levelContainer: css({
display: "flex",
alignItems: "center",
justifyContent: "space-between",
Expand Down
16 changes: 8 additions & 8 deletions src/components/contrast-results/contrast-level.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ interface Iprops {

export function ContrastLevel({ textType, contrast, pass }: Iprops) {
return (
<li className={classes.root}>
<div>
<span className={classes.textType}>{textType.toUpperCase()} TEXT</span>
<li>
<span className={classes.textType}>{textType.toUpperCase()} TEXT</span>
<div className={classes.levelContainer}>
<p className={classes.contrast}>{contrast}</p>
{pass ? (
<CheckFill aria-label="check" className={classes.checkIcon} />
) : (
<CloseFill aria-label="close" className={classes.closeIcon} />
)}
</div>
{pass ? (
<CheckFill aria-label="check" className={classes.checkIcon} />
) : (
<CloseFill aria-label="close" className={classes.closeIcon} />
)}
</li>
);
}

0 comments on commit 587a95a

Please sign in to comment.