Skip to content

Commit

Permalink
fix(ui5-input): fix value state msg appearance (#2075)
Browse files Browse the repository at this point in the history
Fixes the height when the value state msg is displayed as standalone popovr and within the suggestions popover

FIXES #2070
  • Loading branch information
ilhan007 committed Aug 10, 2020
1 parent bf19767 commit edfe8ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/main/src/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ class Input extends UI5Element {
}

/**
* Checks if the popover is open.
* Checks if the value state popover is open.
* @returns {Boolean} true if the popover is open, false otherwise
* @public
*/
Expand Down Expand Up @@ -1034,6 +1034,7 @@ class Input extends UI5Element {
return {
popoverValueState: {
"ui5-valuestatemessage-root": true,
"ui5-responsive-popover-header": !this.isOpen(),
"ui5-valuestatemessage--success": this.valueState === ValueState.Success,
"ui5-valuestatemessage--error": this.valueState === ValueState.Error,
"ui5-valuestatemessage--warning": this.valueState === ValueState.Warning,
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/InputPopover.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
class="ui5-valuestatemessage-popover"
placement-type="Bottom"
>
<div slot="header" class="ui5-responsive-popover-header {{classes.popoverValueState}}" style="{{styles.popoverHeader}}">
<div slot="header" class="{{classes.popoverValueState}}" style="{{styles.popoverHeader}}">
{{> valueStateMessage}}
</div>
</ui5-popover>
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/themes/ResponsivePopoverCommon.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
.ui5-responsive-popover-header .row {
box-sizing: border-box;
padding: 0.25rem 1rem;
height: 2.5rem;
min-height: 2.5rem;
display: flex;
justify-content: center;
align-items: center;
Expand Down

0 comments on commit edfe8ca

Please sign in to comment.