Skip to content

Commit eefccbf

Browse files
committed
fix: wrong names in colors map
1 parent b6da406 commit eefccbf

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

scss/_functions.scss

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -241,22 +241,21 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
241241

242242
// scss-docs-start table-color-functions
243243
@function table-color-map($background) {
244-
$table-bg: $background;
245244
$color: color-contrast(opaque($body-bg, $background));
246245
$striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
247246
$active-bg: mix($color, $background, percentage($table-active-bg-factor));
248247
$hover-bg: mix($color, $background, percentage($table-hover-bg-factor));
249248

250249
@return (
251-
"table-bg": $background,
252-
"table-color": $color,
253-
"table-border-color": mix($color, $background, percentage($table-border-factor)),
254-
"table-striped-bg": $striped-bg,
255-
"table-striped-color": color-contrast($striped-bg),
256-
"table-active-bg": $active-bg,
257-
"table-active-color": color-contrast($active-bg),
258-
"table-hover-bg": $hover-bg,
259-
"table-hover-color": color-contrast($hover-bg)
250+
"bg": $background,
251+
"color": $color,
252+
"border-color": mix($color, $background, percentage($table-border-factor)),
253+
"striped-bg": $striped-bg,
254+
"striped-color": color-contrast($striped-bg),
255+
"active-bg": $active-bg,
256+
"active-color": color-contrast($active-bg),
257+
"hover-bg": $hover-bg,
258+
"hover-color": color-contrast($hover-bg)
260259
);
261260
}
262261
// scss-docs-end table-color-functions

scss/mixins/_table-variants.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// scss-docs-start table-variant
22
@mixin table-variant($map) {
3-
--#{$variable-prefix}table-bg: #{map-get($map, "table-bg")};
4-
--#{$variable-prefix}table-color: #{map-get($map, "table-color")};
5-
--#{$variable-prefix}table-border-color: #{map-get($map, "table-border-color")};
6-
--#{$variable-prefix}table-striped-bg: #{map-get($map, "table-striped-bg")};
7-
--#{$variable-prefix}table-striped-color: #{map-get($map, "table-striped-color")};
8-
--#{$variable-prefix}table-active-bg: #{map-get($map, "table-active-bg")};
9-
--#{$variable-prefix}table-active-color: #{map-get($map, "table-active-color")};
10-
--#{$variable-prefix}table-hover-bg: #{map-get($map, "table-hover-bg")};
11-
--#{$variable-prefix}table-hover-color: #{map-get($map, "table-hover-color")};
3+
--#{$variable-prefix}table-bg: #{map-get($map, "bg")};
4+
--#{$variable-prefix}table-color: #{map-get($map, "color")};
5+
--#{$variable-prefix}table-border-color: #{map-get($map, "border-color")};
6+
--#{$variable-prefix}table-striped-bg: #{map-get($map, "striped-bg")};
7+
--#{$variable-prefix}table-striped-color: #{map-get($map, "striped-color")};
8+
--#{$variable-prefix}table-active-bg: #{map-get($map, "active-bg")};
9+
--#{$variable-prefix}table-active-color: #{map-get($map, "active-color")};
10+
--#{$variable-prefix}table-hover-bg: #{map-get($map, "hover-bg")};
11+
--#{$variable-prefix}table-hover-color: #{map-get($map, "hover-color")};
1212

1313
color: var(--#{$variable-prefix}table-color);
1414
border-color: var(--#{$variable-prefix}table-border-color);

0 commit comments

Comments
 (0)