Input: Width prop (#23615)

* Add width property

* Remove unused import

* Spelling mistake

* Add width to interface

* Make width optional

* Remove size

* Update snapshot

* Remove size from places

* Add size prop for button

* Update width

* Update snapshots
This commit is contained in:
Tobias Skarhed
2020-04-21 10:42:57 +02:00
committed by GitHub
parent a2d741f60f
commit 9bbc007cb9
40 changed files with 94 additions and 131 deletions

View File

@@ -29,7 +29,7 @@ $space-md: 16px !default;
$space-lg: 24px !default;
$space-xl: 32px !default;
$spacer: 14px !default;
$spacer: 16px !default;
$spacer-x: $spacer !default;
$spacer-y: $spacer !default;
$spacers: (

View File

@@ -8,20 +8,20 @@
// widths
@for $i from 1 through 30 {
.width-#{$i} {
width: ($spacer * $i) - $space-xs !important;
width: ($spacer * $i) !important;
}
}
@for $i from 1 through 30 {
.max-width-#{$i} {
max-width: ($spacer * $i) - $space-xs !important;
max-width: ($spacer * $i) !important;
flex-grow: 1;
}
}
@for $i from 1 through 30 {
.min-width-#{$i} {
min-width: ($spacer * $i) - $space-xs !important;
min-width: ($spacer * $i) !important;
}
}