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

Fixes #1992 - Disabled form elements hover state is overlapping, if control has add-ons elements #1993

Merged
merged 3 commits into from
Jul 18, 2018

Conversation

kdrdgn
Copy link
Contributor

@kdrdgn kdrdgn commented Jul 13, 2018

This is a bugfix

Disabled form elements hover state is overlapping if a control has add-ons elements

Proposed solution

This solution excludes disabled form elements hover state which is used within has-addons fields wrapper
Fixes #1992

Tradeoffs

No tradeoffs.

Testing Done

I checkout out master and changed the lines. Please see attached files

.fields.has-addons > .control > input : hover bug

field-has-addons-disabled-input-hover-bug

.fields.has-addons > .control > input : hover fixes

field-has-addons-disabled-input-hover-fixed

example html structure

<div class="field has-addons">
  <p class="control">
    <input class="input" type="text" placeholder="Your email" disabled>
  </p>
  <p class="control">
    <a class="button is-static">
      @gmail.com
    </a>
  </p>
</div>

<!-- DO NOT REBUILD THE CSS OUTPUT IN YOUR PR -->

<!-- Choose one of the following: -->
This is a bugfix
<!-- New feature? Update the CHANGELOG.md too, and eventually the Docs. -->
<!-- Improvement? Explain how and why. -->
<!-- Bugfix? Reference that issue as well. -->
If a form field is disabled and that form field uses has add-on element ( has-addons ), hover state is overlapping to add-on element.

### Proposed solution
<!-- Which specific problem does this PR solve and how?  -->
<!-- If it fixes a particular Issue, add "Fixes #ISSUE_NUMBER" in your title -->
This solution excludes disabled form elements hover state which is used within has-addons fields wrapper.
Fixes jgthms#1992

### Tradeoffs
<!-- What are the drawbacks of this solution? Are there alternative ones? -->
<!-- Think of performance, build time, usability, complexity, coupling…) -->
No tradeoffs.

### Testing Done
I checkout out master and changed the lines.
…-ons elements

If a form field is disabled and that form field uses has add-on element ( has-addons ), hover state is overlapping to add-on element.
@jgthms
Copy link
Owner

jgthms commented Jul 13, 2018

There’s no change??

@kdrdgn
Copy link
Contributor Author

kdrdgn commented Jul 14, 2018

@jgthms one of animated gif shows overlapping 1px border; the other one is after the fix.

@jgthms
Copy link
Owner

jgthms commented Jul 14, 2018

No I mean there’s no code change? The “Changes” tab shows 0 additions and 0 deletions.

…-ons elements

If a form field is disabled and that form field uses has add-on element ( has-addons ), hover state is overlapping to add-on element.
@kdrdgn
Copy link
Contributor Author

kdrdgn commented Jul 14, 2018

@jgthms Oh, I am so sorry, I had pushed a reverted version mistakenly. Now it should be ok.

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.

Disabled form elements hover state is overlapping, if control has add-ons elements
3 participants