Skip to content

Commit

Permalink
[Fix] Remove gutter from advanced settings code blocks (elastic#32700) (
Browse files Browse the repository at this point in the history
elastic#32720)

but also add a slight left border to the gutter for other possible instances on white backgrounds
  • Loading branch information
cchaos authored Mar 8, 2019
1 parent 1252484 commit 9fbc458
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,7 @@ exports[`Field for json setting should render as read only with help text if ove
"tabSize": 2,
}
}
showGutter={false}
theme="textmate"
value="{\\"hello\\": \\"world\\"}"
width="100%"
Expand Down Expand Up @@ -1384,6 +1385,7 @@ exports[`Field for json setting should render custom setting icon if it is custo
"tabSize": 2,
}
}
showGutter={false}
theme="textmate"
value="{\\"foo\\": \\"bar\\"}"
width="100%"
Expand Down Expand Up @@ -1520,6 +1522,7 @@ exports[`Field for json setting should render default value if there is no user
"tabSize": 2,
}
}
showGutter={false}
theme="textmate"
value="{\\"foo\\": \\"bar\\"}"
width="100%"
Expand Down Expand Up @@ -1656,6 +1659,7 @@ exports[`Field for json setting should render user value if there is user value
"tabSize": 2,
}
}
showGutter={false}
theme="textmate"
value="{\\"hello\\": \\"world\\"}"
width="100%"
Expand Down Expand Up @@ -1780,6 +1784,7 @@ exports[`Field for markdown setting should render as read only with help text if
"tabSize": 2,
}
}
showGutter={false}
theme="textmate"
value="**bold**"
width="100%"
Expand Down Expand Up @@ -1881,6 +1886,7 @@ exports[`Field for markdown setting should render custom setting icon if it is c
"tabSize": 2,
}
}
showGutter={false}
theme="textmate"
value=""
width="100%"
Expand Down Expand Up @@ -1971,6 +1977,7 @@ exports[`Field for markdown setting should render default value if there is no u
"tabSize": 2,
}
}
showGutter={false}
theme="textmate"
value=""
width="100%"
Expand Down Expand Up @@ -2103,6 +2110,7 @@ exports[`Field for markdown setting should render user value if there is user va
"tabSize": 2,
}
}
showGutter={false}
theme="textmate"
value="**bold**"
width="100%"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class FieldUI extends PureComponent {
editorProps={{
$blockScrolling: Infinity
}}

showGutter={false}
/>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
overflow: visible;
}

.ace_scroller {
border-left: $euiBorderThin;
}

.ace_warning {
color: $euiColorDanger;
}
Expand All @@ -70,6 +66,7 @@
.ace_gutter {
background-color: $euiColorEmptyShade;
color: $euiColorDarkShade;
border-left: 1px solid $aceBackground;
}

.ace_print-margin {
Expand Down

0 comments on commit 9fbc458

Please sign in to comment.