Updated code, and snapshots

This commit is contained in:
Belén Curcio
2018-08-09 09:45:29 -03:00
parent 8634647c9f
commit b5d626ad8c
5 changed files with 12 additions and 5 deletions
@@ -27,7 +27,7 @@
font-family: var(--font-family);
font-style: normal;
font-weight: normal;
line-height: normal;
line-height: calc(16rem / var(--rem-base));
font-size: calc(16rem / var(--rem-base));
color: var(--palette-grey-lighter);
}
@@ -1,5 +1,5 @@
.root {
composes: validationMessage from "talk-ui/shared/typography.css";
composes: alertMessage from "talk-ui/shared/typography.css";
position: relative;
display: inline-flex;
justify-content: flex-start;
@@ -8,7 +8,6 @@ import ValidationMessage from "./ValidationMessage";
it("renders correctly", () => {
const props: PropTypesOf<typeof ValidationMessage> = {
className: "custom",
color: "error",
children: "Hello World",
};
const renderer = TestRenderer.create(<ValidationMessage {...props} />);
@@ -3,7 +3,6 @@
exports[`renders correctly 1`] = `
<div
className="ValidationMessage-root ValidationMessage-colorError custom"
color="error"
>
<span
className="Icon-root ValidationMessage-icon Icon-sm"
+10 -1
View File
@@ -127,7 +127,7 @@
letter-spacing: calc(0.2em / 16);
}
.validationMessage {
.alertMessage {
color: var(--palette-common-black);
font-family: var(--font-family);
font-weight: var(--font-weight-medium);
@@ -153,3 +153,12 @@
letter-spacing: calc(0.2em / 16);
color: var(--palette-text-primary);
}
.placeholder {
font-family: var(--font-family);
font-style: normal;
font-weight: normal;
line-height: calc(16rem / var(--rem-base));
font-size: calc(16rem / var(--rem-base));
color: var(--palette-grey-lighter);
}