-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: make static are items recognizable to openui5 dialogs #5888
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ class StaticAreaItem extends HTMLElement { | |
this._rendered = false; | ||
this.attachShadow({ mode: "open" }); | ||
this.pureTagName = "ui5-static-area-item"; | ||
this.popupIntegrationAttr = "data-sap-ui-integration-popup-content"; | ||
} | ||
|
||
/** | ||
|
@@ -37,9 +38,9 @@ class StaticAreaItem extends HTMLElement { | |
*/ | ||
update() { | ||
if (this._rendered) { | ||
this.setAttribute(this.pureTagName, ""); | ||
this._updateContentDensity(); | ||
this._updateDirection(); | ||
this._updateAdditionalAttrs(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe this is not a problem at all, but it would be safest IMO to move this method call to where the old There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agree 👍 |
||
updateShadowRoot(this.ownerElement, true); | ||
} | ||
} | ||
|
@@ -67,6 +68,11 @@ class StaticAreaItem extends HTMLElement { | |
} | ||
} | ||
|
||
_updateAdditionalAttrs() { | ||
this.setAttribute(this.pureTagName, ""); | ||
this.setAttribute(this.popupIntegrationAttr, ""); | ||
} | ||
|
||
/** | ||
* @protected | ||
* Returns reference to the DOM element where the current fragment is added. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
html, body, #content { | ||
height: 100%; | ||
} | ||
|
||
.openui51auto { | ||
background-color: var(--sapBackgroundColor); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to have this as a constant in the module directly