Extending Icon for extra small

This commit is contained in:
Belen Curcio
2018-08-02 08:37:48 -03:00
parent 67c8ca9d57
commit 64da3f02f9
4 changed files with 7 additions and 2 deletions
@@ -36,6 +36,10 @@
-moz-osx-font-smoothing: grayscale;
}
.xsm {
font-size: 14px;
width: 14px;
}
.sm {
font-size: 18px;
width: 18px;
@@ -14,6 +14,7 @@ Checkout available icons https://material.io/tools/icons/
## Basic usage
<Playground>
<Icon size="xsm">face</Icon>
<Icon size="sm">face</Icon>
<Icon size="md">face</Icon>
<Icon size="lg">face</Icon>
@@ -13,7 +13,7 @@ import
<Flex itemGutter direction="column">
<ValidationMessage>Account with this email address already exists. Try another email</ValidationMessage>
<ValidationMessage>Please enter a valid email address</ValidationMessage>
<ValidationMessage>Invalid characters. Try again</ValidationMessage>
<ValidationMessage color="error">Invalid characters. Try again</ValidationMessage>
</Flex>
</Playground>
@@ -40,7 +40,7 @@ const ValidationMessage: StatelessComponent<InnerProps> = props => {
<div className={rootClassName} {...rest}>
{color === "error" && (
<Icon size="sm" className={classes.icon}>
face
warning
</Icon>
)}
{children}