Add cache buster to injected icons CSS in block grid (#14621)
* Inject icons css via shadow DOM * Fix typo * Import icons.less instead
This commit is contained in:
committed by
GitHub
parent
96f8f70ed5
commit
8f5fee9f76
@@ -1,6 +1,4 @@
|
||||
<style>
|
||||
@import 'assets/css/icons.css';
|
||||
|
||||
.blockelement-gridblock-editor {
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<style>
|
||||
@import 'assets/css/icons.css';
|
||||
|
||||
.blockelement-gridinlineblock-editor {
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<style>
|
||||
@import 'assets/css/icons.css';
|
||||
|
||||
@keyframes umb-icon-jump {
|
||||
0%, 100% { transform: rotate(6deg); }
|
||||
50% { transform: rotate(-6deg); }
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<style>
|
||||
@import 'assets/css/icons.css';
|
||||
|
||||
.blockelement-unsupportedblock-editor {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
@import "../../../less/variables.less";
|
||||
@import "../../../less/mixins.less";
|
||||
@import "../../../less/helveticons.less";
|
||||
@import "../../../less/icons.less";
|
||||
@import "../../../less/buttons.less";
|
||||
@import "../../../less/accessibility/sr-only.less";
|
||||
@import "../../../less/components/umb-icon.less";
|
||||
|
||||
@umb-block-grid__item_minimum_height: 48px;
|
||||
|
||||
|
||||
@@ -49,16 +49,20 @@
|
||||
var shadowRoot = $element[0].attachShadow({ mode: 'open' });
|
||||
shadowRoot.innerHTML =
|
||||
`
|
||||
<style>@import "assets/css/icons.css?umb__rnd=${Umbraco.Sys.ServerVariables.application.cacheBuster}"</style>
|
||||
|
||||
${ model.stylesheet ? `
|
||||
<style>
|
||||
@import "${model.stylesheet}?umb__rnd=${Umbraco.Sys.ServerVariables.application.cacheBuster}"
|
||||
</style>`
|
||||
: ''
|
||||
}
|
||||
|
||||
<div
|
||||
style="display:contents;"
|
||||
ng-class="{'show-validation': vm.blockEditorApi.internal.showValidation}"
|
||||
ng-include="api.internal.sortMode ? api.internal.sortModeView : '${model.view}'"></div>
|
||||
ng-include="api.internal.sortMode ? api.internal.sortModeView : '${model.view}'">
|
||||
</div>
|
||||
`;
|
||||
$compile(shadowRoot)($scope);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user