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

Darken row on hover #198

Merged
merged 2 commits into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions vue/dynamicforms/src/components/table/table-style.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ function generateStyle(uniqueId: string, responsiveColumns: IndexedArray<TableCo
#${uniqueId} .df-row {
display: block;
white-space: nowrap;
background-color: white;
transition: filter 0.4s ease
}

#${uniqueId} .data-row:hover {
filter: brightness(95%);
cursor: pointer;
}

#${uniqueId} > .df-thead > .df-separator {
Expand Down
4 changes: 1 addition & 3 deletions vue/dynamicforms/src/components/table/trow-generic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div
v-else
ref="row"
:class="`df-row ${rowData.dfControlStructure.CSSClass}`"
:class="{ [`df-row ${rowData.dfControlStructure.CSSClass}`]: true, ['data-row']: rowType === RowTypes.Data }"
:style="rowData.dfControlStructure.CSSStyle"
@click.stop="(event) => callHandler(actions.rowClick, { rowType, event })"
@mouseup.right="(event) => callHandler(actions.rowRightClick, { rowType, event })"
Expand All @@ -25,8 +25,6 @@

<script setup lang="ts">
import { computed, provide, ref } from 'vue';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { ObserveVisibility } from 'vue-observe-visibility';

import { useActionHandler } from '../actions/action-handler-composable';
import FilteredActions from '../actions/filtered-actions';
Expand Down
Loading