Skip to content

Commit 94ef247

Browse files
committed
Nav: dropdown summary inside a colored navbar blends with the background instead of looking like a form input.
1 parent e268f5d commit 94ef247

22 files changed

Lines changed: 30 additions & 21 deletions

css/mu.component.nav.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ nav details.dropdown {
8585
display: inline-block;
8686
}
8787

88+
/* Dropdown summary inside a colored navbar: blend with the background instead of looking like a form input */
89+
:is(nav, :has(> nav)):is(.bg-primary, .bg-secondary, .bg-tertiary, .bg-contrast,
90+
.bg-accent, .bg-success, .bg-info, .bg-warning,
91+
.bg-error, .bg-pop, .bg-spark) details.dropdown > summary:not([role]) {
92+
background-color: transparent;
93+
border-color: transparent;
94+
color: inherit;
95+
}
96+
8897
/* Active link (current page) */
8998
nav .active {
9099
font-weight: bold;

dist/mu.amber.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mu.azure.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mu.blue.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mu.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mu.cyan.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mu.fuchsia.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mu.green.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mu.grey.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mu.indigo.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)