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 icons floating out of input area #1749

Merged
merged 1 commit into from
May 30, 2018

Conversation

ReeceM
Copy link
Contributor

@ReeceM ReeceM commented Mar 23, 2018

Fix the problem of the control has-icon-* icons floating out of the input area when a .help element is-pulled-right of a preceding field.

This is a imporvement / bugfix.

There are no similar problems as I don't think anyone has done the layout I used to get the layout error.

Proposed solution

Add clear: both to the .control class to account for help elements being pulled to the right when there are no labels between individual inputs. This sort of layout may be preferred when a minimal form is used. But when the help text is made visible everything goes out of whack.

Examples of the problem

screen shot 2018-03-23 at 21 56 34

Fix Applied

Adding clear: both

screen shot 2018-03-23 at 21 56 59

Tradeoffs

There are no draw backs from what I can tell. The function is supported since CSS 2.1.

Testing Done

The feature is confirmed to be working across the browsers I have access too.
Latest Safari on Mac, Chrome Mobile, Firefox dev. and Firefox
Can work across all though...

I used the default examples from Bulma documentation to do tests on for creating the error and fixing it. Has been built on the latest release and tested in a development app.

Corrects the problem of the .has-icon-left / .has-icon-right fields floating out of the input area when a .help element is floated to the right of a preceding input
@Come2Daddy
Copy link
Contributor

Reproduced with doc example, fixed with @ReeceM bugfix.

@jgthms jgthms merged commit c096615 into jgthms:master May 30, 2018
@ReeceM
Copy link
Contributor Author

ReeceM commented Jun 7, 2018

@jgthms Thanks for merging the PR 👍. Only looked today

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.

3 participants