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

fix(primevue): primevue styling for data table hover effect #174

Merged
merged 5 commits into from
Jun 19, 2024
Merged
Changes from all commits
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
32 changes: 19 additions & 13 deletions style-sheets/primevue-components-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -501,23 +501,28 @@ label {
}

.#{variables.$primevue-prefix}-datatable
.#{variables.$primevue-prefix}-datatable-tbody
> tr
> td {
@extend %body-compact-01;
height: 3rem;
text-align: left;
box-shadow: 0 0.0625rem 0 0
map.get(lightTheme.$light-theme, 'border-subtle-01') inset;
padding: 0 1rem;
border: none;
.#{variables.$primevue-prefix}-datatable-tbody {
> tr > td {
@extend %body-compact-01;
height: 3rem;
text-align: left;
padding: 0 1rem;
border: none;
}
}

.#{variables.$primevue-prefix}-datatable
.#{variables.$primevue-prefix}-datatable-tbody {
> tr {
box-shadow: inset 0 0 0 0.031rem
map-get(lightTheme.$light-theme, 'border-subtle-01');
}
}

.#{variables.$primevue-prefix}-datatable
.#{variables.$primevue-prefix}-datatable-tbody
> tr
> td {
box-shadow: 0 -0.0625rem 0 0 #dfdfe1 inset;
> tr:hover {
background-color: map.get(lightTheme.$light-theme, 'layer-hover-01');
}

.#{variables.$primevue-prefix}-sortable-column-icon {
Expand Down Expand Up @@ -884,6 +889,7 @@ label {
}
}


/* ------------------------------------ Sidebar --------------------------------- */

.#{variables.$primevue-prefix}-sidebar-left
Expand Down