diff --git a/src/BootstrapBlazor.Server/Components/Components/Header.razor.css b/src/BootstrapBlazor.Server/Components/Components/Header.razor.css index 9c265f983dc..9bd69d1567f 100644 --- a/src/BootstrapBlazor.Server/Components/Components/Header.razor.css +++ b/src/BootstrapBlazor.Server/Components/Components/Header.razor.css @@ -40,15 +40,16 @@ color: var(--bs-navbar-color); border-right: 1px solid #dddddd40; padding-right: 0.5rem; + white-space: nowrap; } - .icon-theme img { - cursor: pointer; - } +.icon-theme img { + cursor: pointer; +} - .icon-theme .icon-dark { - display: none; - } +.icon-theme .icon-dark { + display: none; +} [data-bs-theme='dark'] .icon-dark { display: block; diff --git a/src/BootstrapBlazor.Server/Components/Samples/Logouts.razor b/src/BootstrapBlazor.Server/Components/Samples/Logouts.razor index ead35135a3c..72507e47acf 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Logouts.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Logouts.razor @@ -8,15 +8,19 @@ - -
+
+ +
+
- -
+
+ +
+
-

@((MarkupString)Localizer["RibbonTabsAnchorDesc"].Value)

+
@((MarkupString)Localizer["RibbonTabsAnchorDesc"].Value)
diff --git a/src/BootstrapBlazor.Server/Locales/en.json b/src/BootstrapBlazor.Server/Locales/en.json index 86cf2a65c8f..baa3abb919f 100644 --- a/src/BootstrapBlazor.Server/Locales/en.json +++ b/src/BootstrapBlazor.Server/Locales/en.json @@ -1796,7 +1796,7 @@ "MenusClickShrinkDescription": "In this example, the layout component Layout is used to build a web page", "Block7aTitle": "Click expand to shrink the left menu", "MenusClickShrinkSpanSpan": "I am the title of the website", - "MenusClickShrinkMenuTitle": "Backstage management", + "MenusClickShrinkMenuTitle": "Admin", "MenusWidgetTitle": "Menu with pendant", "MenusWidgetIntro": "Set the custom component into the menu by setting the Component property of the MenuItem ", "MenusCustomNodeTitle": "Custom node shrinkage", diff --git a/src/BootstrapBlazor/Components/Menu/Menu.razor.scss b/src/BootstrapBlazor/Components/Menu/Menu.razor.scss index a2bfaffa69a..4960f0d0755 100644 --- a/src/BootstrapBlazor/Components/Menu/Menu.razor.scss +++ b/src/BootstrapBlazor/Components/Menu/Menu.razor.scss @@ -37,7 +37,6 @@ .menu .nav .nav-link, .cascade .dropdown-item { padding: 0.5rem 1rem; - color: rgba(0,0,0,.65); user-select: none; white-space: nowrap; position: relative; @@ -137,7 +136,6 @@ display: flex; align-items: center; line-height: 21px; - color: inherit; transition: background-color .3s linear, color .3s linear; } diff --git a/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.scss b/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.scss index 6588c9ec471..3dd3c5a5af8 100644 --- a/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.scss +++ b/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.scss @@ -6,8 +6,6 @@ --bb-ribbon-menu-radius: #{$bb-ribbon-menu-radius}; --bb-ribbon-menu-padding: #{$bb-ribbon-menu-padding}; --bb-ribbon-menu-border-color: #{$bb-ribbon-menu-border-color}; - --bb-ribbon-menu-bg: #{$bb-ribbon-menu-bg}; - --bb-ribbon-menu-color: #{$bb-ribbon-menu-color}; --bb-ribbon-menu-hover-color: #{$bb-ribbon-menu-hover-color}; --bb-ribbon-button-hover-bg: #{$bb-ribbon-button-hover-bg}; --bb-ribbon-button-hover-border-color: #{$bb-ribbon-button-hover-border-color}; @@ -36,7 +34,8 @@ } .ribbon-tab .ribbon-header .tabs-header { - background-color: var(--bb-ribbon-menu-bg); + background-color: var(--bs-body-bg); + border-bottom: 1px solid var(--bs-border-color); } .ribbon-tab .ribbon-header .tabs-border-card.tabs-top .tabs-header { @@ -74,7 +73,7 @@ } .ribbon-tab .ribbon-header .tabs-border-card .tabs-header .tabs-item:not(:hover):not(.active) { - color: var(--bb-ribbon-menu-color); + color: var(--bs-body-color); } .ribbon-tab .ribbon-header .tabs-border-card .tabs-header .tabs-item:hover { diff --git a/src/BootstrapBlazor/Components/Select/Select.razor.scss b/src/BootstrapBlazor/Components/Select/Select.razor.scss index 518f7756ffe..c2692b42466 100644 --- a/src/BootstrapBlazor/Components/Select/Select.razor.scss +++ b/src/BootstrapBlazor/Components/Select/Select.razor.scss @@ -90,12 +90,16 @@ height: 0; border-width: 0 6px 6px; border-style: solid; - border-color: transparent transparent #fff; + border-color: transparent transparent var(--bs-body-bg); position: absolute; top: 1px; left: -6px; } +[data-bs-theme='dark'] .dropdown-menu-arrow:after { + content: none; +} + .show > .dropdown-menu, .show > .dropdown-menu-arrow { display: block; diff --git a/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss b/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss index 35fbb57fe82..9a1fa151215 100644 --- a/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss +++ b/src/BootstrapBlazor/wwwroot/scss/theme/bootstrap.blazor.scss @@ -410,11 +410,9 @@ $bb-ribbon-menu-body-padding: .5rem; $bb-ribbon-menu-radius: var(--bs-border-radius); $bb-ribbon-menu-padding: .5rem; $bb-ribbon-menu-border-color: var(--bs-border-color); -$bb-ribbon-menu-bg: #f5f5f5; -$bb-ribbon-menu-color: #343a40; $bb-ribbon-menu-hover-color: #409eff; -$bb-ribbon-button-hover-bg: #d0e7ff; -$bb-ribbon-button-hover-border-color: #8bb5e0; +$bb-ribbon-button-hover-bg: rgb(51 147 246 / 48%); +$bb-ribbon-button-hover-border-color: #89b9ea; $bb-ribbon-button-active-bg: #acd4fd; $bb-ribbon-button-active-border-color: #8bb5e0; $bb-ribbon-button-border-width: 1px;