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

[EuiPageTemplate] Fix data-fixed-headers usage #6140

Merged
merged 4 commits into from
Aug 15, 2022

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Aug 15, 2022

Summary

Related to #5768
Closes #6138

EuiPageTemplate expects the data-fixed-headers attribute is to exist, but the attribute is only managed by EuiHeader. The fix is to have a fallback value for when EuiHeader is not in use. Also updated the method by which the attribute is managed (setAttribute to dataset).

For verification, you'll need something other than the docs site. I used CRA with the build-pack output and the simple App.tsx from the issue.

Checklist

  • Checked in Chrome, Safari, Edge, and Firefox
  • Checked Code Sandbox works for any docs examples
  • Checked for breaking changes and labeled appropriately
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_6140/

@thompsongl thompsongl marked this pull request as ready for review August 15, 2022 16:58
Copy link
Member

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

EuiPageTemplate NaN is an invalid value for the paddingBlockStart css style property
3 participants