fix: thin lines are rendered inconsistently#4615
Merged
johnleider merged 3 commits intovuetifyjs:masterfrom Jul 17, 2018
Merged
fix: thin lines are rendered inconsistently#4615johnleider merged 3 commits intovuetifyjs:masterfrom
johnleider merged 3 commits intovuetifyjs:masterfrom
Conversation
fix: thin lines are rendered inconsistently
KaelWD
reviewed
Jul 14, 2018
| @@ -159,11 +159,15 @@ rtl(v-text-field-rtl, "v-text-field") | |||
| background-position: bottom | |||
| background-size: 3px 1px | |||
| background-repeat: repeat-x | |||
Member
There was a problem hiding this comment.
Anyone know what all this crap is for? Probably isn't needed any more if we're using borders now.
Removed unnecessary `height` rules, increased border width to 2px for `box` input (I accidentally made it 1px initially)
Codecov Report
@@ Coverage Diff @@
## master #4615 +/- ##
==========================================
- Coverage 90.17% 90.12% -0.05%
==========================================
Files 206 206
Lines 4914 4923 +9
Branches 1246 1251 +5
==========================================
+ Hits 4431 4437 +6
- Misses 387 389 +2
- Partials 96 97 +1Continue to review full report at Codecov.
|
Removed unnecessary styles: `height, min-height, width, min-width`. We don't really need them if we're drawing lines as borders
KaelWD
added a commit
that referenced
this pull request
Jul 18, 2018
KaelWD
added a commit
that referenced
this pull request
Jul 18, 2018
see #4615 still need to figure out something with background-image, but this'll do for now
YoanChapron
pushed a commit
to YoanChapron/vuetify
that referenced
this pull request
Jul 18, 2018
YoanChapron
pushed a commit
to YoanChapron/vuetify
that referenced
this pull request
Jul 18, 2018
see vuetifyjs#4615 still need to figure out something with background-image, but this'll do for now
YoanChapron
pushed a commit
to YoanChapron/vuetify
that referenced
this pull request
Jul 18, 2018
YoanChapron
pushed a commit
to YoanChapron/vuetify
that referenced
this pull request
Jul 18, 2018
see vuetifyjs#4615 still need to figure out something with background-image, but this'll do for now
YoanChapron
pushed a commit
to YoanChapron/vuetify
that referenced
this pull request
Jul 18, 2018
YoanChapron
pushed a commit
to YoanChapron/vuetify
that referenced
this pull request
Jul 18, 2018
see vuetifyjs#4615 still need to figure out something with background-image, but this'll do for now
YoanChapron
pushed a commit
to YoanChapron/vuetify
that referenced
this pull request
Jul 18, 2018
YoanChapron
pushed a commit
to YoanChapron/vuetify
that referenced
this pull request
Jul 18, 2018
see vuetifyjs#4615 still need to figure out something with background-image, but this'll do for now
KaelWD
added a commit
that referenced
this pull request
Jul 18, 2018
DoritoBandito
pushed a commit
to DoritoBandito/vuetify
that referenced
this pull request
Jul 18, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
fixes #3847
fixes #3588
fixes #3090
Currently all thin lines in Vuetify components look inconsistent and confusing (depends on the page zoom and element position on the page):
The problem occurs because of approximation in rendering which becomes noticable for thin elements (e.g.
v-divider,v-divider vertical,v-select,v-input-field)There's currently only 1 solution to this problem - to use borders as lines.
It fixes the problem on all Chromium and Firefox browsers (and possibly on Safari, haven't tested).
How Has This Been Tested?
Visually:
Codepen example: https://codepen.io/anon/pen/yqYdbB?editors=1100
Types of changes
Checklist:
masterfor bug fixes,devfor new features and breaking changes).