Skip to content

Commit

Permalink
Fixes combobox height with appendees (#1338)
Browse files Browse the repository at this point in the history
---------

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
  • Loading branch information
ps48 committed Aug 8, 2024
1 parent 1f67bce commit f704404
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### 🐛 Bug Fixes

- Fixes combobox height with appendees ([#1338](https://github.com/opensearch-project/oui/pull/1338))

### 🚞 Infrastructure

### 📝 Documentation
Expand Down
13 changes: 13 additions & 0 deletions src/components/combo_box/_combo_box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,19 @@
}
}

// Overrides the top and bottom padding of 8px with ouiFormControlLayout--group
// when append/prepend is enabled, original top, bottom padding was 1px
.ouiFormControlLayout--group {
padding-top: 0;
padding-bottom: 0;
}

// Overrides line-height of 16px coming from ouiFormControlLayout--group .ouiText
.ouiFormControlLayout--group .ouiText {
// sass-lint:disable-block no-important
line-height: 0 !important;
}

// Overrides the ouiFormControlLayout prepend and append height that is 100%
.ouiFormControlLayout__prepend,
.ouiFormControlLayout__append {
Expand Down

0 comments on commit f704404

Please sign in to comment.