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

refactor: translate grid sticky sections with a CSS variable #2396

Merged
merged 2 commits into from
Aug 26, 2021

Conversation

tomivirkki
Copy link
Member

This PR removes a lot of the outdated logic related to translating the stationary grid sections (header/footer/frozen cells). It introduces a new private CSS variable, (--_grid-horizontal-scroll-position), that's now used in the component styles for the necessary transforms.

The new CSS variable is a prerequisite for #357

@tomivirkki tomivirkki force-pushed the grid-transforms-as-css-variables branch from 662b6bb to d235ab7 Compare August 26, 2021 12:56
@sonarcloud
Copy link

sonarcloud bot commented Aug 26, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@web-padawan web-padawan changed the title opt: translate grid sticky sections with a CSS variable refactor: translate grid sticky sections with a CSS variable Aug 26, 2021
@tomivirkki tomivirkki merged commit 1ecac6a into master Aug 26, 2021
@tomivirkki tomivirkki deleted the grid-transforms-as-css-variables branch August 26, 2021 13:41
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 22.0.0.alpha2 and is also targeting the upcoming stable 22.0.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants