Fixing size of inputs via box-shadow #928
Merged
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.
The box-shadow that mimics the input’s border is now
inset
. This means the40px
height is actually40px
and the box-shadow ensure it's borders don't spill over the400px
width.It's very subtle, hence the zoomed in gif. I also tweaked the second box-shadow slightly to have a better edge to it.
This also touched the
EuiComboBoxList
styles since it was doing extra css to account for the extended border.This originally was noticed as an issue when I saw this:
https://github.com/elastic/kibana/blame/master/src/core_plugins/input_control_vis/public/components/editor/controls_tab.less
So cc'ing @nreese : This will fix the problem you were running into with inputs inside of accordions. When this get's merged into Kibana, can you remove this extra style? It will cause visual issues with the accordion if for some reason it doesn't correctly get the height of
0
. See example: