Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

[terra-collapsible-menu-view] Flicker issue when wrapped with clinical header #1965

Merged
merged 13 commits into from
Jan 10, 2024

Conversation

MadanKumarGovindaswamy
Copy link
Contributor

@MadanKumarGovindaswamy MadanKumarGovindaswamy commented Jan 3, 2024

Summary

What was changed:

Updated to calculate the available space from the collapsible menu container div when collapsible menu view component is wrapped with clinical header component.

Why it was changed:

When a file path with a small label is added dynamically inside a clinical header it starts to flicker.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details

Screen.Recording.2024-01-09.at.11.01.39.AM.mov

This PR resolves:

UXPLATFORM-10099


Thank you for contributing to Terra.
@cerner/terra

@MadanKumarGovindaswamy MadanKumarGovindaswamy self-assigned this Jan 3, 2024
@MadanKumarGovindaswamy MadanKumarGovindaswamy changed the title update: flicker issue [terra-collapsible-menu-view] Flicker issue when wrapped with clinical header Jan 3, 2024
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 3, 2024 12:52 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 3, 2024 16:29 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 4, 2024 07:22 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 4, 2024 09:12 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 4, 2024 09:14 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 4, 2024 09:33 Destroyed
@cerner cerner deleted a comment from github-actions bot Jan 4, 2024
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 4, 2024 12:51 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 4, 2024 15:17 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 4, 2024 15:26 Destroyed
@MadanKumarGovindaswamy MadanKumarGovindaswamy marked this pull request as ready for review January 4, 2024 15:48
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 9, 2024 04:55 Destroyed
);
};

export default FilePathwithClinicalHeader;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export default FilePathwithClinicalHeader;
export default FilePathwithActionHeader;

can we get the filename also updated to action header

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.
Commit: a09f4db
Thanks

}
// to calculate available space when resized only when menuButtonContainerWidth is used
if ((window.innerWidth - menuButtonWidth) < availableWidth) {
availableWidth = window.innerWidth - menuButtonWidth;
Copy link
Contributor

Choose a reason for hiding this comment

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

will this be having -ve value ..?? I think we can use Math.Abs() if we are not sure edge case where it could be -ve

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added Math.abs to avoid -ve values.
c66f453
Thanks

@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 9, 2024 14:51 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 9, 2024 15:03 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-1965 January 10, 2024 04:54 Destroyed
@supreethmr supreethmr merged commit 5ed1966 into main Jan 10, 2024
22 checks passed
@supreethmr supreethmr deleted the UXPLATFORM-10099-Flickering-issue branch January 10, 2024 06:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants