mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 22:02:02 +08:00
Extending Icon for extra small
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user