Remove clickable visual styles from plugins
This commit is contained in:
parent
fb8d6bb341
commit
387c3be2b4
|
@ -33,6 +33,7 @@
|
||||||
export let allowSelectRows
|
export let allowSelectRows
|
||||||
export let allowEditRows = true
|
export let allowEditRows = true
|
||||||
export let allowEditColumns = true
|
export let allowEditColumns = true
|
||||||
|
export let allowClickRows = true
|
||||||
export let selectedRows = []
|
export let selectedRows = []
|
||||||
export let customRenderers = []
|
export let customRenderers = []
|
||||||
export let disableSorting = false
|
export let disableSorting = false
|
||||||
|
@ -373,7 +374,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{#if sortedRows?.length}
|
{#if sortedRows?.length}
|
||||||
{#each sortedRows as row, idx}
|
{#each sortedRows as row, idx}
|
||||||
<div class="spectrum-Table-row">
|
<div class="spectrum-Table-row" class:clickable={allowClickRows}>
|
||||||
{#if showEditColumn}
|
{#if showEditColumn}
|
||||||
<div
|
<div
|
||||||
class:noBorderCheckbox={!showHeaderBorder}
|
class:noBorderCheckbox={!showHeaderBorder}
|
||||||
|
@ -566,8 +567,12 @@
|
||||||
/* Table rows */
|
/* Table rows */
|
||||||
.spectrum-Table-row {
|
.spectrum-Table-row {
|
||||||
display: contents;
|
display: contents;
|
||||||
|
cursor: auto;
|
||||||
}
|
}
|
||||||
.spectrum-Table-row:hover .spectrum-Table-cell {
|
.spectrum-Table-row.clickable {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.spectrum-Table-row.clickable:hover .spectrum-Table-cell {
|
||||||
background-color: var(--spectrum-global-color-gray-100);
|
background-color: var(--spectrum-global-color-gray-100);
|
||||||
}
|
}
|
||||||
.wrapper--quiet .spectrum-Table-row {
|
.wrapper--quiet .spectrum-Table-row {
|
||||||
|
|
|
@ -103,6 +103,7 @@
|
||||||
allowEditColumns={false}
|
allowEditColumns={false}
|
||||||
allowEditRows={false}
|
allowEditRows={false}
|
||||||
allowSelectRows={false}
|
allowSelectRows={false}
|
||||||
|
allowClickRows={false}
|
||||||
{customRenderers}
|
{customRenderers}
|
||||||
/>
|
/>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in New Issue