Skip to content

Commit

Permalink
feat(plate): adds new prop "warning" for type (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
IBelyaev committed Apr 16, 2020
1 parent 0687f21 commit d518b39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/plate/plate.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
border: 1px solid rgba(13, 186, 38, 0.2);
}

&_type_warning {
/* TODO rgba-цвета заменить на переменные */
background-color: rgba(246, 191, 101, 0.1);
border: 1px solid rgba(246, 191, 101, 0.6);
}

&_hidden {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion src/plate/plate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export type PlateProps = DeepReadonly<{
/**
* Тип `Plate`
*/
type?: 'default' | 'common' | 'error' | 'success';
type?: 'default' | 'common' | 'error' | 'success' | 'warning';

/**
* Дополнительный класс
Expand Down

0 comments on commit d518b39

Please sign in to comment.