Skip to content

Commit

Permalink
Merge pull request #1181 from creative-commoners/pulls/1.7/popover-op…
Browse files Browse the repository at this point in the history
…tion-set

FIX Correct sizing of PopoverOptionSet, restore dismissal on blur
  • Loading branch information
kinglozzer authored Feb 18, 2021
2 parents f269c2b + bf17ba3 commit a2b721c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/dist/styles/bundle.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion client/src/components/PopoverOptionSet/PopoverOptionSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,11 @@ class PopoverOptionSet extends Component {
container={container}
hideArrow
isOpen={isOpen}
onKeyDown={this.handleKeyDown}
placement={placement}
target={target}
toggle={this.handleToggle}
onKeyDown={this.handleKeyDown}
trigger="legacy"
>
{this.renderSearchBox()}
{this.renderOptionButtons()}
Expand Down
12 changes: 3 additions & 9 deletions client/src/components/PopoverOptionSet/PopoverOptionSet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,16 @@ $button-height: 40px;
$column-width: 225px;

.popover-option-set {
max-width: $column-width;
display: flex;
flex-direction: column;
border-radius: $border-radius; // Change to equal 4px

@include media-breakpoint-up(sm) {
max-width: $column-width * 2;
}
border-radius: $border-radius;

> .popover {
min-width: 280px;
max-width: 100%;
overflow: hidden;
width: calc(100% - 10px);

@include media-breakpoint-up(sm) {
min-width: 450px;
max-width: $column-width * 2;
}
}

Expand Down

0 comments on commit a2b721c

Please sign in to comment.