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

EuiBottomBar: allow customization of whether the component makes room for itself #4156

Merged
merged 13 commits into from
Oct 27, 2020

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Oct 19, 2020

Replaces #3641 from @dannya

Add new affordForDisplacement prop (default: true) to allow customization of whether the component makes room for itself by adding padding equivalent to its own height on the document body element.

Use case is a web app which ordinarily doesn't require vertical scrollbars (with a large enough browser viewport) - the existing unconfigurable behavior was forcing a vertical scrollbar to appear in this scenario, as can be seen in the updated component doc page.

Make clear that the paddingSize prop default is "m".

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs
  • Added documentation
  • [ ] Checked Code Sandbox works for the any docs examples
  • Added or updated jest tests
  • [ ] Checked for breaking changes and labeled appropriately
  • [ ] Checked for accessibility including keyboard-only and screenreader modes
  • A changelog entry exists and is marked appropriately

dannya and others added 8 commits June 23, 2020 03:09
* Add new `affordForDisplacement` prop (default: true) to allow customization of whether the component makes room for itself by adding padding equivalent to its own height on the document body element.

Use case a web app which ordinarily doesn't require vertical scrollbars (with a large enough browser viewport) - the existing unconfigurable behavior was forcing a vertical scrollbar to appear in this scenario, as can be seen in the updated component doc page.

* Make clear that the `paddingSize` prop default is "m".
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
@cchaos cchaos requested a review from chandlerprall October 19, 2020 20:00
@kibanamachine
Copy link

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

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

Overall approach LGTM; some requests around implementation and/or documentation

src/components/bottom_bar/bottom_bar.tsx Show resolved Hide resolved
src/components/bottom_bar/bottom_bar.tsx Show resolved Hide resolved
src/components/bottom_bar/bottom_bar.tsx Outdated Show resolved Hide resolved
@kibanamachine
Copy link

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

@cchaos cchaos requested a review from chandlerprall October 27, 2020 14:53
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

LGTM! Pulled & tested locally

@kibanamachine
Copy link

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

@cchaos cchaos merged commit ff65405 into elastic:master Oct 27, 2020
@cchaos cchaos deleted the feature/BottomBarAffordForDisplacement branch October 27, 2020 15:51
@dannya
Copy link
Contributor

dannya commented Oct 30, 2020

@cchaos I appreciate you taking the time to get this over the line in my absence! (@chandlerprall too!)

Thank you both.

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.

4 participants