Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] feat(HTMLTable): add styling for tfoot elements #4674

Merged
merged 3 commits into from
Apr 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adding tfoot support
  • Loading branch information
Elihu Diaz Alvarez committed Apr 24, 2021
commit f8d3605d58594cc8626e4099f3fa33d7da7d58d6
12 changes: 8 additions & 4 deletions packages/core/src/components/html-table/_html-table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ table.#{$ns}-html-table {
box-shadow: inset $table-border-width 0 0 0 $table-border-color;
}

tbody tr td {
tbody tr td,
tfoot tr td {
box-shadow: inset 0 $table-border-width 0 0 $table-border-color;

&:not(:first-child) {
Expand All @@ -144,7 +145,8 @@ table.#{$ns}-html-table {
}

&.#{$ns}-interactive {
tbody tr {
tbody tr,
tfoot tr {
&:hover td {
background-color: rgba($gray5, 0.3);
cursor: pointer;
Expand All @@ -170,7 +172,8 @@ table.#{$ns}-html-table {
box-shadow: inset $table-border-width 0 0 0 $dark-table-border-color;
}

tbody tr td {
tbody tr td,
tfoot tr td {
box-shadow: inset 0 $table-border-width 0 0 $dark-table-border-color;

&:not(:first-child) {
Expand All @@ -192,7 +195,8 @@ table.#{$ns}-html-table {
}

&.#{$ns}-interactive {
tbody tr {
tbody tr,
tfoot tr {
&:hover td {
background-color: rgba($gray1, 0.3);
cursor: pointer;
Expand Down