Skip to content

Simplifying form control styles#954

Merged
cchaos merged 4 commits intoelastic:masterfrom
cchaos:form-controls-styles
Jun 29, 2018
Merged

Simplifying form control styles#954
cchaos merged 4 commits intoelastic:masterfrom
cchaos:form-controls-styles

Conversation

@cchaos
Copy link
Contributor

@cchaos cchaos commented Jun 28, 2018

  • Made bottom colored border from linear-gradient
  • Allowing parameters to determine if just the borders should render
  • Allowing parameters to determine if all state styles should be added
  • Fixing variable naming schemes

Before

After

The one thing to note is that it no longer has a reverse transition. However, it now matches better with our other animations that also don't have a reverse transition.

- Made bottom colored border from linear-gradient
- Allowing parameters to determine if just the borders should render
- Allowing parameters to determine if all state styles should be added
- Fixing variable naming schemes
@cchaos cchaos requested a review from snide June 28, 2018 16:06
@cchaos
Copy link
Contributor Author

cchaos commented Jun 28, 2018

The only downside is that IE doesn't support transitions on background-size.

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

These are great. So much smoother than before. Peeped the code and it all seems readable to me. Tested in browsers. IE thing isn't that big of a deal.

@cchaos cchaos merged commit 975159c into elastic:master Jun 29, 2018
@cchaos cchaos deleted the form-controls-styles branch June 29, 2018 16:12
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.

2 participants