Преглед на файлове

Add small prop config to Button

Tatiana Inama преди 6 години
родител
ревизия
52dd9fd0a1
променени са 2 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 1 0
      recipes/src/components/Button/index.tsx
  2. 6 0
      recipes/src/components/Button/styles.scss

+ 1 - 0
recipes/src/components/Button/index.tsx

@@ -30,6 +30,7 @@ export default function CBKButton(props: CBKButtonProps) {
     'cbk-btn--unelevated': props.unelevated,
     'cbk-btn--outlined': props.outlined,
     'cbk-btn--disabled': props.disabled,
+    'cbk-btn--small': props.small,
   })
   if (props.icon) {
     return (

+ 6 - 0
recipes/src/components/Button/styles.scss

@@ -149,6 +149,12 @@ button.cbk-btn {
     }
   }
 
+  &--small {
+    line-height: 1rem;
+    font-size: 0.8rem;
+    font-weight: lighter;
+  }
+
   &:last-child {
     margin-right: 0;
   }