Skip to content

Commit

Permalink
fix(ui5-messagestrip): fix layout in ie (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid authored Apr 23, 2019
1 parent 4d7d9c3 commit ca5f62c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/MessageStripTemplateContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MessageStripTemplateContext {
"ui5-messagestrip-close-icon": true,
},
main: {
"ui5-messagestrip": true,
"ui5-messagestrip-root": true,
"ui5-messagestrip-icon--hidden": state.hideIcon,
"ui5-messagestrip-close-icon--hidden": state.hideCloseButton,
[MessageStripTemplateContext.getTypeClasses(state)]: true,
Expand Down
8 changes: 4 additions & 4 deletions packages/main/src/themes/MessageStrip.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ span[data-sap-ui-wc-root] {
display: flex;
}

.ui5-messagestrip {
.ui5-messagestrip-root {
width: 100%;
height: 100%;
display: flex;
Expand All @@ -27,21 +27,21 @@ span[data-sap-ui-wc-root] {
position: relative;
}

.ui5-messagestrip .ui5-messagestrip-icon {
.ui5-messagestrip-root .ui5-messagestrip-icon {
width: var(--_ui5_messagestrip_icon_width);
box-sizing: border-box;
position: absolute;
top: var(--_ui5_messagestrip_icon_top);
left: 0px;
}

.ui5-messagestrip .ui5-messagestrip-text {
.ui5-messagestrip -root.ui5-messagestrip-text {
width: 100%;
color: var(--sapTextColor);
line-height: 1.2;
}

.ui5-messagestrip ui5-button {
.ui5-messagestrip-root ui5-button {
height: var(--_ui5_messagestrip_button_height);
border-width: var(--_ui5_messagestrip_button_border_width);
border-style: var(--_ui5_messagestrip_button_border_style);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
}
</script>

<script src="../../../../../../webcomponentsjs/webcomponents-loader.js"></script>
<script src="../../../../../../resources/sap/ui/webcomponents/main/bundle.esm.js"
type="module"
>
Expand Down

0 comments on commit ca5f62c

Please sign in to comment.