Skip to content

Commit 5f2a836

Browse files
authored
Fix mistake in navbar-dark-contrast's default value (#782)
Co-authored-by: cpsievert <[email protected]>
1 parent 0693a76 commit 5f2a836

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inst/lib/bs5/scss/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ $navbar-light-contrast: if(
12241224
var(--#{$prefix}emphasis-color-rgb)
12251225
) !default; // Deepest contrasting color for navbarPage(inverse = FALSE).
12261226
$navbar-dark-contrast: if(
1227-
type-of($navbar-light-bg) == color,
1227+
type-of($navbar-dark-bg) == color,
12281228
color-contrast($navbar-dark-bg),
12291229
var(--#{$prefix}emphasis-color-rgb)
12301230
) !default; // Deepest contrasting color for navbarPage(inverse = TRUE).

tools/patches/021-add-navbar-bg-vars-bs5.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ index 91bdbfdf..709feeb2 100644
2121
+ var(--#{$prefix}emphasis-color-rgb)
2222
+) !default; // Deepest contrasting color for navbarPage(inverse = FALSE).
2323
+$navbar-dark-contrast: if(
24-
+ type-of($navbar-light-bg) == color,
24+
+ type-of($navbar-dark-bg) == color,
2525
+ color-contrast($navbar-dark-bg),
2626
+ var(--#{$prefix}emphasis-color-rgb)
2727
+) !default; // Deepest contrasting color for navbarPage(inverse = TRUE).

0 commit comments

Comments
 (0)