-
Notifications
You must be signed in to change notification settings - Fork 4k
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(Input): fix icon order to ensure rounded border is kept #2507
fix(Input): fix icon order to ensure rounded border is kept #2507
Conversation
💖 Thanks for opening this pull request! 💖 Here is a list of things that will help get it across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov Report
@@ Coverage Diff @@
## master #2507 +/- ##
=========================================
Coverage ? 99.74%
=========================================
Files ? 154
Lines ? 2712
Branches ? 0
=========================================
Hits ? 2705
Misses ? 7
Partials ? 0
Continue to review full report at Codecov.
|
ship it! |
Thanks @Intregrisist! Can you also add a test to this PR to make sure this order of elements is maintained? I will take a look at this today and look through all of the other |
src/elements/Input/Input.js
Outdated
{Icon.create(this.computeIcon())} | ||
{actionPosition !== 'left' && actionElement} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer a test that the render order is as it should be. However, a comment will do in this case. We use this convention when encountering gotchas like this:
// Heads up!
// A short comment about something very important.
Let's notify our future selves that SUI CSS requires the icon to be between these two elements.
Whoops, sorry @brianespinosa! Didn't see your comment before I posted 😊 Obviously, I agree with you 👍 |
Sorry, wasn't available to make the changes until now. @levithomason & @brianespinosa please see a28a0aa. |
a28a0aa
to
f4134b3
Compare
Looking much better. There is technically an infinite number of places the icon should not be. Can we update the tests to assert where it should be instead of where it should not be? This will make for stronger tests. |
There has been no activity in this thread for 90 days. While we care about every issue and we’d love to see this fixed, the core team’s time is limited so we have to focus our attention on the issues that are most pressing. Therefore, we will likely not be able to get to this one. However, PRs for this issue will of course be accepted and welcome! If there is no more activity in the next 90 days, this issue will be closed automatically for housekeeping. To prevent this, simply leave a reply here. Thanks! |
I've updated tests and merged master. This can be merged on pass. |
Released in |
Fixes #2506