Browse Source

Set font-size of webfont icon inside a button (#2046)

BG-Software 8 tháng trước cách đây
mục cha
commit
bc1d1a3066
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 5 0
      .changeset/kind-days-sneeze.md
  2. 1 0
      src/scss/ui/_buttons.scss

+ 5 - 0
.changeset/kind-days-sneeze.md

@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Set `font-size` of an `i` element with `icon` class in a `button` element

+ 1 - 0
src/scss/ui/_buttons.scss

@@ -23,6 +23,7 @@
     width: var(--#{$prefix}btn-icon-size);
     height: var(--#{$prefix}btn-icon-size);
     min-width: var(--#{$prefix}btn-icon-size);
+    font-size: var(--#{$prefix}btn-icon-size);
     margin: 0 calc(var(--#{$prefix}btn-padding-x) / 2) 0 calc(var(--#{$prefix}btn-padding-x) / -4);
     vertical-align: bottom;
     color: inherit;