Skip to content

Commit

Permalink
feat(clay-css): Input Group adds support for .c-inner to `.input-gr…
Browse files Browse the repository at this point in the history
…oup-inset-item .btn`

issue #2763
  • Loading branch information
pat270 authored and marcoscv-work committed Feb 17, 2020
1 parent f37f31d commit 60fc69b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/clay-css/src/scss/components/_input-groups.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,19 @@

.btn {
@include clay-button-size($input-group-inset-item-btn);

@if ($enable-c-inner) {
.c-inner {
align-items: center;
display: flex;
height: 100%;
justify-content: center;

.lexicon-icon {
margin-top: 0;
}
}
}
}

.form-file {
Expand Down
1 change: 1 addition & 0 deletions packages/clay-css/src/scss/variables/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ $input-group-inset-item-padding-right: 5px !default;

$input-group-inset-item-btn: () !default;
$input-group-inset-item-btn: map-deep-merge((
display: block,
height: 75%,
line-height: 1,
margin-left: 0.125rem,
Expand Down

0 comments on commit 60fc69b

Please sign in to comment.