Skip to content

fix: non-contiguous table row selection background colour#1623

Merged
dsmmcken merged 1 commit intomainfrom
dmckenzie_1619
Nov 6, 2023
Merged

fix: non-contiguous table row selection background colour#1623
dsmmcken merged 1 commit intomainfrom
dmckenzie_1619

Conversation

@dsmmcken
Copy link
Copy Markdown
Contributor

@dsmmcken dsmmcken commented Nov 3, 2023

Fixes #1619

Draw selection was calling the fill/stroke inside the loop, which implicitly calls closePath, resulting the fill to be drawed over top of itself multiple times. Move the fill/stroke outside the loop the creates the selection rects.

Adds an e2e test that makes a non-contiguous selection to prevent regressions.

@dsmmcken dsmmcken self-assigned this Nov 3, 2023
@dsmmcken dsmmcken requested a review from bmingles November 3, 2023 20:41
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 3, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (9ab2b1e) 46.71% compared to head (d0f3ae2) 46.71%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1623   +/-   ##
=======================================
  Coverage   46.71%   46.71%           
=======================================
  Files         583      583           
  Lines       36308    36308           
  Branches     9094     9094           
=======================================
  Hits        16961    16961           
  Misses      19295    19295           
  Partials       52       52           
Flag Coverage Δ
unit 46.71% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
packages/grid/src/GridRenderer.ts 50.66% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Copy Markdown
Contributor

@bmingles bmingles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsmmcken dsmmcken merged commit 61d1a53 into main Nov 6, 2023
@dsmmcken dsmmcken deleted the dmckenzie_1619 branch November 6, 2023 15:27
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

non-contiguous row selection results in less transparent selection bg color

2 participants