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(Input): fix icon order to ensure rounded border is kept #2507

Merged
merged 4 commits into from
Jun 26, 2018

Conversation

Intregrisist
Copy link
Contributor

@Intregrisist Intregrisist commented Feb 8, 2018

Fixes #2506

screen shot 2018-02-07 at 5 50 38 pm

@welcome
Copy link

welcome bot commented Feb 8, 2018

💖 Thanks for opening this pull request! 💖

Here is a list of things that will help get it across the finish line:

  • Run yarn lint locally to catch formatting errors. This will fix some errors automatically, commit and push any changes.
  • Run yarn test locally to catch errors. This ensures all components still behave as they should.
  • Run yarn start to run the doc site locally and try a few pages, ensuring everything is in good working order.
  • Include tests when adding/changing behavior.

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-io
Copy link

codecov-io commented Feb 8, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@02af086). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2507   +/-   ##
=========================================
  Coverage          ?   99.74%           
=========================================
  Files             ?      154           
  Lines             ?     2712           
  Branches          ?        0           
=========================================
  Hits              ?     2705           
  Misses            ?        7           
  Partials          ?        0
Impacted Files Coverage Δ
src/elements/Input/Input.js 100% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 02af086...39ec70b. Read the comment docs.

@ilyastam
Copy link

ilyastam commented Feb 8, 2018

ship it!

@brianespinosa
Copy link
Member

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 Input element examples and make sure this change does not break anything else.

{Icon.create(this.computeIcon())}
{actionPosition !== 'left' && actionElement}
Copy link
Member

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.

@levithomason
Copy link
Member

Whoops, sorry @brianespinosa! Didn't see your comment before I posted 😊 Obviously, I agree with you 👍

@Intregrisist
Copy link
Contributor Author

Intregrisist commented Feb 18, 2018

Sorry, wasn't available to make the changes until now. @levithomason & @brianespinosa please see a28a0aa.

@levithomason
Copy link
Member

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.

@levithomason
Copy link
Member

@Intregrisist ^

@stale
Copy link

stale bot commented Jun 14, 2018

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!

@stale stale bot added the stale label Jun 14, 2018
@stale stale bot removed the stale label Jun 25, 2018
@levithomason
Copy link
Member

I've updated tests and merged master. This can be merged on pass.

@levithomason levithomason merged commit eae01ad into Semantic-Org:master Jun 26, 2018
@welcome
Copy link

welcome bot commented Jun 26, 2018

Congrats on merging your first pull request! 🎉🎉🎉

robot victory dance

@levithomason
Copy link
Member

Released in semantic-ui-react@0.81.2.

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.

6 participants