From 2ec03fe57a66e9f56b0b30ba823d2e1f50438fac Mon Sep 17 00:00:00 2001 From: enisn Date: Thu, 25 Nov 2021 10:28:41 +0300 Subject: [PATCH] Add bs5 fix for select2 --- .../Bundling/BasicThemeGlobalStyleContributor.cs | 1 + .../wwwroot/themes/basic/custom/select2-bs5-fix.css | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/wwwroot/themes/basic/custom/select2-bs5-fix.css diff --git a/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Bundling/BasicThemeGlobalStyleContributor.cs b/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Bundling/BasicThemeGlobalStyleContributor.cs index bf60b4ccd0..e5254366d4 100644 --- a/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Bundling/BasicThemeGlobalStyleContributor.cs +++ b/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Bundling/BasicThemeGlobalStyleContributor.cs @@ -7,6 +7,7 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling public override void ConfigureBundle(BundleConfigurationContext context) { context.Files.Add("/themes/basic/layout.css"); + context.Files.Add("/themes/basic/custom/select2-bs5-fix.css"); } } } diff --git a/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/wwwroot/themes/basic/custom/select2-bs5-fix.css b/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/wwwroot/themes/basic/custom/select2-bs5-fix.css new file mode 100644 index 0000000000..beb981c139 --- /dev/null +++ b/modules/basic-theme/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/wwwroot/themes/basic/custom/select2-bs5-fix.css @@ -0,0 +1,4 @@ +/*TODO: Remove after BS5 Modal support of select2 */ +span.select2-container.select2-container--default.select2-container--open { + z-index: 1056; /*Just for BS5 Modals*/ +}