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 padding and responsive behavior of page header #8600

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

virajsanghvi
Copy link
Collaborator

Description

Fixes padding and responsive behavior of page header on feature pages

Issues Resolved

  • Second row had incorrect right/left margin
  • Title was wrapping too quickly
  • Titles without breaks won’t wrap
  • Noticed title wasn’t aligned vertically center
  • Health/Badge isn’t aligned vertically center
  • Not spacing between left/right content on larger screens
  • Vertical spacing between on smaller screens is large/inconsistent due to eui responsive header behavior

Screenshot

os responsive 2

Testing the changes

Tested locally + had UX validate

Changelog

  • fix: Fix padding and responsive behavior of page 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 Oct 15, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 60.95%. Comparing base (47ae28b) to head (625dc8d).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
src/core/public/chrome/ui/header/header.tsx 33.33% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8600   +/-   ##
=======================================
  Coverage   60.95%   60.95%           
=======================================
  Files        3790     3790           
  Lines       90296    90296           
  Branches    14151    14151           
=======================================
  Hits        55036    55036           
  Misses      31804    31804           
  Partials     3456     3456           
Flag Coverage Δ
Linux_1 29.29% <0.00%> (ø)
Linux_2 56.39% <33.33%> (ø)
Linux_3 37.72% <0.00%> (+<0.01%) ⬆️
Linux_4 29.91% <0.00%> (ø)
Windows_1 29.31% <0.00%> (ø)
Windows_2 56.34% <33.33%> (ø)
Windows_3 37.72% <0.00%> (-0.01%) ⬇️
Windows_4 29.91% <0.00%> (ø)

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.

Copy link
Member

@zhongnansu zhongnansu left a comment

Choose a reason for hiding this comment

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

lgtm!

@ashwin-pc
Copy link
Member

Does this also fix the header for application pages like discover, visualize and dashboards?

@virajsanghvi
Copy link
Collaborator Author

Does this also fix the header for application pages like discover, visualize and dashboards?

It does not address any issues on app headers - can you call out what the issue there is?

@ruanyl ruanyl merged commit db51ee1 into opensearch-project:main Oct 18, 2024
73 of 74 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 18, 2024
* fix: Fix padding and responsive behavior of page header

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

* Changeset file for PR #8600 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 db51ee1)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
AMoo-Miki pushed a commit that referenced this pull request Oct 18, 2024
* fix: Fix padding and responsive behavior of page header



* Changeset file for PR #8600 created/updated

---------



(cherry picked from commit db51ee1)

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>
amsiglan pushed a commit to amsiglan/OpenSearch-Dashboards that referenced this pull request Oct 19, 2024
…roject#8600)

* fix: Fix padding and responsive behavior of page header

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

* Changeset file for PR opensearch-project#8600 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>
sejli pushed a commit to sejli/OpenSearch-Dashboards that referenced this pull request Oct 21, 2024
…roject#8600)

* fix: Fix padding and responsive behavior of page header

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

* Changeset file for PR opensearch-project#8600 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>
Qxisylolo pushed a commit to Qxisylolo/OpenSearch-Dashboards that referenced this pull request Oct 30, 2024
…roject#8600)

* fix: Fix padding and responsive behavior of page header

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

* Changeset file for PR opensearch-project#8600 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>
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.

4 participants