Skip to content

Commit

Permalink
fix(StyledBadge): Fix letter-spacing (#538)
Browse files Browse the repository at this point in the history
`0.25` - is invalid value. Letter-spacing should be used with units of measurement.
  • Loading branch information
mirantel authored and mlampedx committed Jul 24, 2019
1 parent 7f66c1c commit e071587
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exports[`<BottomSheetLabel /> renders BottomSheetLabel correctly 1`] = `

exports[`<BottomSheetLabel /> renders BottomSheetLabel with prop variant to equal \`alert\` 1`] = `
<div
className="badge cjJxfY"
className="badge jrNCNq"
color="#d93a3a"
>
Alert label
Expand All @@ -22,7 +22,7 @@ exports[`<BottomSheetLabel /> renders BottomSheetLabel with prop variant to equa

exports[`<BottomSheetLabel /> renders BottomSheetLabel with prop variant to equal \`positive\` 1`] = `
<div
className="badge kUCvzt"
className="badge dzrfqE"
color="#1bab1e"
>
Positive label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ exports[`<RowLabel /> renders RowLabel variant \`alert\` 1`] = `
data-index={0}
>
<div
className="badge jCfiAj"
className="badge gYyJWD"
color="#d93a3a"
>
test label
Expand All @@ -117,7 +117,7 @@ exports[`<RowLabel /> renders RowLabel variant \`alert\` 1`] = `
data-index={0}
>
<div
className="badge jCfiAj"
className="badge gYyJWD"
color="#d93a3a"
>
test label
Expand All @@ -128,7 +128,7 @@ exports[`<RowLabel /> renders RowLabel variant \`alert\` 1`] = `
data-index={0}
>
<div
className="badge jCfiAj"
className="badge gYyJWD"
color="#d93a3a"
>
test label
Expand All @@ -150,7 +150,7 @@ exports[`<RowLabel /> renders RowLabel variant \`caution\` 1`] = `
data-index={0}
>
<div
className="badge kwlPtm"
className="badge jktpIU"
color="#c69a22"
>
test label
Expand All @@ -161,7 +161,7 @@ exports[`<RowLabel /> renders RowLabel variant \`caution\` 1`] = `
data-index={0}
>
<div
className="badge kwlPtm"
className="badge jktpIU"
color="#c69a22"
>
test label
Expand All @@ -172,7 +172,7 @@ exports[`<RowLabel /> renders RowLabel variant \`caution\` 1`] = `
data-index={0}
>
<div
className="badge kwlPtm"
className="badge jktpIU"
color="#c69a22"
>
test label
Expand All @@ -194,7 +194,7 @@ exports[`<RowLabel /> renders RowLabel variant \`neutral\` 1`] = `
data-index={0}
>
<div
className="badge hPXrVB"
className="badge imbETb"
color="rgba(38, 38, 38, 0.65)"
>
test label
Expand All @@ -205,7 +205,7 @@ exports[`<RowLabel /> renders RowLabel variant \`neutral\` 1`] = `
data-index={0}
>
<div
className="badge hPXrVB"
className="badge imbETb"
color="rgba(38, 38, 38, 0.65)"
>
test label
Expand All @@ -216,7 +216,7 @@ exports[`<RowLabel /> renders RowLabel variant \`neutral\` 1`] = `
data-index={0}
>
<div
className="badge hPXrVB"
className="badge imbETb"
color="rgba(38, 38, 38, 0.65)"
>
test label
Expand Down
2 changes: 1 addition & 1 deletion src/components/StatusBadge/StatusBadge.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const StyledBadge = styled.div`
font-size: ${typography.size.mini};
line-height: 1.2;
border-radius: ${constants.borderRadius.small};
letter-spacing: 0.25;
letter-spacing: 0.025em;
text-transform: uppercase;
background-color: ${({ color }) => color};
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`StatusBadge should match snapshot when variant is dark 1`] = `
<div
className="badge gvbcbQ"
className="badge lftmLP"
color="#026cdf"
>
snapshot test
Expand All @@ -11,7 +11,7 @@ exports[`StatusBadge should match snapshot when variant is dark 1`] = `

exports[`StatusBadge should match snapshot when variant is light 1`] = `
<div
className="badge kxnhqq"
className="badge ctVbnM"
color="#026cdf"
>
light test
Expand All @@ -20,7 +20,7 @@ exports[`StatusBadge should match snapshot when variant is light 1`] = `

exports[`StatusBadge should match snapshot when variant is undefined 1`] = `
<div
className="badge gvbcbQ"
className="badge lftmLP"
color="#026cdf"
>
snapshot test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ exports[`StatusBadgeGroup should match snapshot 1`] = `
className="ioUUSv"
>
<div
className="badge jmtBfD"
className="badge QSstl"
color="#d3d3d3"
>
error
</div>
<div
className="badge gNSpfG"
className="badge jUoXGh"
color="#f0f0f0"
>
caution
</div>
<div
className="kiIEGi"
className="nHnME"
onMouseEnter={[Function]}
onMouseLeave={[Function]}
onTouchStart={[Function]}
Expand Down

0 comments on commit e071587

Please sign in to comment.