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

fix(app): use css grid for run setup accordion transition #16296

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

brenthagen
Copy link
Contributor

Overview

We've been implementing the expanding/collapsing run setup step accordion transition using a max-height approach that isn't ideal because it limits the height of content. When protocols have a large number of labware, content in the labware step overflows.

This is a well-known problem without a clear solution until recently: since chromium 107 added support, we can now use css grid's grid-template-rows property to transition to the height of content.

closes RQA-2901

Screen.Recording.2024-09-18.at.4.42.50.PM.mov

Test Plan and Hands on Testing

manually verified the transition (screen recording); checked the other setup tabs including liquids for regressions

Changelog

  • Uses css grid for run setup accordion transition

Review requests

check out the setup step accordion transition with protocols with lots of labware (see RQA-2901) and lots of liquids as well. check list view and map view.

Risk assessment

low

uses css grid's grid-template-rows property to transition to the height of content when expanding
and collapsing the run setup step accordion

closes RQA-2901
@brenthagen brenthagen requested a review from a team as a code owner September 18, 2024 22:45
@brenthagen brenthagen requested review from TamarZanzouri, a team, ncdiehl11 and koji and removed request for a team, TamarZanzouri and ncdiehl11 September 18, 2024 22:45
@@ -7,6 +7,7 @@ export const DISPLAY_FLEX = 'flex'
export const DISPLAY_TABLE = 'table'
export const DISPLAY_TABLE_ROW = 'table-row'
export const DISPLAY_TABLE_CELL = 'table-cell'
export const DISPLAY_GRID = 'grid'
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@koji koji left a comment

Choose a reason for hiding this comment

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

tested liquids case too and no issue.
thank you for fixing this!

@brenthagen brenthagen merged commit 0d38572 into edge Sep 19, 2024
54 checks passed
@brenthagen brenthagen deleted the app_fix-accordion-transition branch September 19, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants