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: fix overlay offsets on pages with feature header #8223

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

virajsanghvi
Copy link
Collaborator

@virajsanghvi virajsanghvi commented Sep 18, 2024

Description

When overlays are positioned, the body becomes positioned relative. The margin on the feature page header vertically offset the body, which caused absolutely positioned overlays (like tooltips) to be 12px lower than expected. Using padding avoids this offset.

Issues Resolved

N/A

Screenshot

Before:
image

After:
image
image

This should resolve the dropdown issue we were seeing as well.

Testing the changes

Tested locally

Changelog

  • fix: fix overlay offsets on pages with feature header

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.05%. Comparing base (3c4dc9d) to head (c548725).
Report is 40 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8223   +/-   ##
=======================================
  Coverage   64.05%   64.05%           
=======================================
  Files        3741     3741           
  Lines       88635    88635           
  Branches    13803    13804    +1     
=======================================
+ Hits        56772    56775    +3     
+ Misses      31265    31262    -3     
  Partials      598      598           
Flag Coverage Δ
Linux_1 30.07% <ø> (+<0.01%) ⬆️
Linux_2 58.83% <ø> (ø)
Linux_3 40.37% <ø> (+<0.01%) ⬆️
Linux_4 31.46% <ø> (ø)
Windows_1 30.08% <ø> (+<0.01%) ⬆️
Windows_2 58.78% <ø> (ø)
Windows_3 40.37% <ø> (+<0.01%) ⬆️
Windows_4 31.46% <ø> (ø)

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

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

@virajsanghvi virajsanghvi merged commit 2ffe62a into opensearch-project:main Sep 18, 2024
72 of 74 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 18, 2024
* fix: fix overlay offsets on pages with feature header

Signed-off-by: Viraj Sanghvi <[email protected]>

* Changeset file for PR #8223 created/updated

---------

Signed-off-by: Viraj Sanghvi <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 2ffe62a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 18, 2024
* fix: fix overlay offsets on pages with feature header

Signed-off-by: Viraj Sanghvi <[email protected]>

* Changeset file for PR #8223 created/updated

---------

Signed-off-by: Viraj Sanghvi <[email protected]>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 2ffe62a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AMoo-Miki pushed a commit that referenced this pull request Sep 19, 2024
* fix: fix overlay offsets on pages with feature header



* Changeset file for PR #8223 created/updated

---------



(cherry picked from commit 2ffe62a)

Signed-off-by: Viraj Sanghvi <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
@virajsanghvi virajsanghvi added look & feel Look and Feel Improvements v2.18.0 labels Sep 26, 2024
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.

3 participants