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

Account for min attribute when determining EuiRange input width #1406

Merged
merged 3 commits into from
Jan 4, 2019

Conversation

zumwalt
Copy link
Contributor

@zumwalt zumwalt commented Jan 4, 2019

Summary

Currently, EuiRange inputs are assigned a dynamic width based upon the number of characters in the max attribute. This PR accounts for the min attribute as well, and chooses the longer of the two when determining input width.

Addresses #1403

Checklist

  • [ ] This was checked in mobile
  • [ ] This was checked in IE11
    -~ [ ] This was checked in dark mode~
  • [ ] Any props added have proper autodocs
  • [ ] Documentation examples were added
  • A changelog entry exists and is marked appropriately
  • [ ] This was checked for breaking changes and labeled appropriately
  • [ ] Jest tests were updated or added to match the most common scenarios
  • [ ] This was checked against keyboard-only and screenreader scenarios
  • [ ] This required updates to Framer X components

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.

changelog change, otherwise looks good

CHANGELOG.md Outdated
@@ -1,5 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Account for `min` attribute when determining `EuiRange` input width ([#1406](https://github.com/elastic/eui/pull/1406))
Copy link
Contributor

Choose a reason for hiding this comment

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

changelog should be under a bugfix heading

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, that makes sense. Thanks!

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

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

@zumwalt zumwalt merged commit 5362cc1 into elastic:master Jan 4, 2019
@zumwalt zumwalt deleted the EuiRange-max-width-fix branch January 4, 2019 21:50
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.

3 participants