Skip to content

Commit

Permalink
fix(primevue): primevue styling for data table hover effect (#174)
Browse files Browse the repository at this point in the history
* table hover styling and refactor

* message icon

* removed unused style

* fix hover color
  • Loading branch information
J0taFerreira authored Jun 19, 2024
1 parent 0cbf844 commit c1bc1a7
Showing 1 changed file with 19 additions and 13 deletions.
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

0 comments on commit c1bc1a7

Please sign in to comment.