Skip to content

Commit

Permalink
Background color for EuiMark only in Amsterdam
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Aug 11, 2020
1 parent 2076d52 commit aebbe8d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const HighlightAndMarkExample = {
],
text: (
<p>
Use <strong>EuiMark</strong> to wrap a string in an
Use <strong>EuiMark</strong> to wrap a string in a{' '}
<EuiCode>mark</EuiCode> element.
</p>
),
Expand Down
6 changes: 4 additions & 2 deletions src/components/mark/_mark.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.euiMark {
padding: $euiSizeXS 0;
background: $euiFocusBackgroundColor;
background-color: transparent;
font-weight: $euiFontWeightBold;
// Override the browser's black color.
// Can't use `inherit` because the text to background color contrast may not be sufficient
color: $euiTextColor;
}
1 change: 1 addition & 0 deletions src/themes/eui-amsterdam/overrides/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import 'filter_group';
@import 'header';
@import 'image';
@import 'mark';
@import 'modal';
@import 'overlay_mask';
@import 'popover';
Expand Down
3 changes: 3 additions & 0 deletions src/themes/eui-amsterdam/overrides/_mark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.euiMark {
background: $euiFocusBackgroundColor;
}

0 comments on commit aebbe8d

Please sign in to comment.