Skip to content

Commit 83ddc37

Browse files
committed
Add classnames for highlighting cells
1 parent bc2dc60 commit 83ddc37

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

playbook/app/pb_kits/playbook/pb_background/_background.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ $background_colors: map-merge($additional_colors, $merge_kits7);
2929
}
3030
};
3131

32+
&.highlight {
33+
background: $info_subtle;
34+
}
35+
36+
&.no-highlight {
37+
&.dark {
38+
background: $card_dark;
39+
}
40+
background: $card_light;
41+
}
42+
3243
&.fade {
3344
opacity: 0;
3445
&.lazyloaded {

playbook/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<tr>
6262
<% row.each do |key, value| %>
6363
<%= pb_rails("background", props: {
64-
background_color: (params["sort"] && params["sort"].start_with?(key) ? "info_subtle" : "card_light"),
64+
classname: (params["sort"] && params["sort"].start_with?(key) ? "highlight" : "no-highlight"),
6565
text_align: (value.is_a?(Integer) ? "right" : ""),
6666
tag: "td"
6767
}) do %>

0 commit comments

Comments
 (0)