Skip to content

Commit

Permalink
feat(setting-row): describe setting-row component using design tokens…
Browse files Browse the repository at this point in the history
…, update tests
  • Loading branch information
Patryk Bochnak committed Mar 1, 2022
1 parent 448bf03 commit f4808f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/settings-row/settings-row.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
assertStyleMatch,
testStyledSystemMargin,
} from "../../__spec_helper__/test-utils";
import baseTheme from "../../style/themes/base";

describe("SettingsRow", () => {
testStyledSystemMargin((props) => <SettingsRow {...props} />, { m: "0" });
Expand Down Expand Up @@ -50,7 +49,7 @@ describe("SettingsRow", () => {

assertStyleMatch(
{
borderBottom: `1px solid ${baseTheme.palette.slateTint(90)}`,
borderBottom: "1px solid var(--colorsUtilityMajor050)",
paddingBottom: "30px",
},
wrapper.find(StyledSettingsRow)
Expand Down
6 changes: 3 additions & 3 deletions src/components/settings-row/settings-row.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const StyledSettingsRow = styled.div`
${margin}
clear: both;
color: ${({ theme }) => theme.palette.slateTint(20)};
color: var(--colorsUtilityYin055);
display: flex;
font-size: 14px;
justify-content: space-between;
Expand All @@ -21,7 +21,7 @@ export const StyledSettingsRow = styled.div`
${({ hasDivider }) =>
hasDivider &&
css`
border-bottom: 1px solid ${({ theme }) => theme.palette.slateTint(90)};
border-bottom: 1px solid var(--colorsUtilityMajor050);
padding-bottom: 30px;
`}
Expand All @@ -30,7 +30,7 @@ export const StyledSettingsRow = styled.div`
}
${StyledHeadingTitle} {
color: ${({ theme }) => theme.palette.slate};
color: var(--colorsUtilityYin090);
font-size: 15px;
font-weight: bold;
line-height: 18px;
Expand Down

0 comments on commit f4808f5

Please sign in to comment.