Skip to content

[Grid - Selection] Selection in combination with horizontal scroll and sticky columns drawing issue #2605

@jnolles

Description

@jnolles

Provide a general summary of the issue here

Given a sl-grid with sticky columns, and horizontal scrolling. The non-sticky columns are visible underneath the sticky columns.

This is due to cells having a background with opacity of 0.1

Image

🤔 Expected Behavior?

Cells should not be visible under each other.

Image

😯 Current Behavior

See summary

💁 Possible Solution

Workaround:

Fix issues with headers of sticky columns:

      sl-grid::part(selection),
      sl-grid::part(username) {
        z-index: 2;
      }

Fix issues with see-through cells:

      sl-grid {
        --sl-color-background-selected-subtlest: #e6f0f9;
      }

🖥️ Steps to Reproduce

Create a sl-grid with:

  • 2 sticky columns (one selection and one normal)
  • 'Selects: multiple' datasource
  • Enable grid scrolling

What browsers are you seeing the problem on? (only for bugs in code)

Firefox, Chrome

If other, please specify.

No response

What operating system are you using?

Windows 11

👤 Your name

Jorn Nolles

🧢 Your product/team

Magister

🎨 Your Theme(s)

Magister

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

✈️ Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions