Fix button styles
authorAjay Bura <ajbura@gmail.com>
Sun, 27 Feb 2022 11:28:15 +0000 (16:58 +0530)
committerAjay Bura <ajbura@gmail.com>
Sun, 27 Feb 2022 11:28:15 +0000 (16:58 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/app/atoms/button/Button.scss

index 98bd58aaaddeb65f057fae6195dbd6ff66f4e0f0..7b12195c21a52818049dae660c9574868108cd0c 100644 (file)
@@ -1,5 +1,6 @@
 @use 'state';
 @use '../../partials/dir';
+@use '../../partials/text';
 
 .btn-surface,
 .btn-primary,
   cursor: pointer;
   @include state.disabled;
 
+  & .text {
+    @extend .cp-txt__ellipsis;
+  }
+  
   &--icon {
     @include dir.side(padding, var(--sp-tight), var(--sp-loose));
 
     .ic-raw {
       @include dir.side(margin, 0, var(--sp-extra-tight));
+      flex-shrink: 0;
     }
   }
 }