Skip to content

Commit

Permalink
update to use success color variable
Browse files Browse the repository at this point in the history
  • Loading branch information
babs20 committed Jun 18, 2021
1 parent ec02e4f commit 76ed608
Show file tree
Hide file tree
Showing 115 changed files with 219 additions and 219 deletions.
2 changes: 1 addition & 1 deletion src/components/button/button_empty/_button_empty.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $euiButtonEmptyTypes: (
disabled: $euiButtonColorDisabledText,
ghost: $euiColorGhost,
text: $euiTextColor,
success: $euiColorSecondaryText,
success: $euiColorSuccessText,
warning: $euiColorWarningText,
);

Expand Down
4 changes: 2 additions & 2 deletions src/components/call_out/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Modifier naming and colors.
$euiCallOutTypes: (
primary: $euiColorPrimary,
success: $euiColorSecondary,
success: $euiColorSuccess,
warning: $euiColorWarning,
danger: $euiColorDanger,
);
);
4 changes: 2 additions & 2 deletions src/components/date_picker/_date_picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,11 @@

&--highlighted {
border-radius: $euiBorderRadius;
background-color: $euiColorSecondary;
background-color: $euiColorSuccess;
color: $euiColorGhost;

&:hover {
background-color: darken($euiColorSecondary, 5%);
background-color: darken($euiColorSuccess, 5%);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/drag_and_drop/_droppable.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.euiDroppable {
$euiDroppableColor: $euiColorSecondary;
$euiDroppableColor: $euiColorSuccess;
transition: background-color $euiAnimSpeedExtraSlow ease;

&.euiDroppable--isDraggingType:not(.euiDroppable--isDisabled) {
Expand Down
118 changes: 59 additions & 59 deletions src/components/icon/__snapshots__/icon.test.tsx.snap

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/components/icon/_icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
.euiIcon--app {
fill: $euiTextColor;

// This provides the default secondary color
.euiIcon__fillSecondary {
fill: makeGraphicContrastColor($euiColorSecondary);
// This provides the default success color
.euiIcon__fillSuccess {
fill: makeGraphicContrastColor($euiColorSuccess);
}
}

Expand Down Expand Up @@ -46,7 +46,7 @@
.euiIcon--primary,
.euiIcon--customColor {
&,
.euiIcon__fillSecondary {
.euiIcon__fillSuccess {
fill: currentColor;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_add_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const EuiIconAppAddData = ({ title, titleId, ...props }) => (
{title ? <title id={titleId}>{title}</title> : null}
<path d="M32 30H0V3h12.57l3 5H32v22zM2 28h28V10H14.43l-3-5H2v23z" />
<path
className="euiIcon__fillSecondary"
className="euiIcon__fillSuccess"
d="M21 18h-4v-4h-2v4h-4v2h4v4h2v-4h4z"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_add_data.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/icon/assets/app_advanced_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ const EuiIconAppAdvancedSettings = ({ title, titleId, ...props }) => (
{...props}>
{title ? <title id={titleId}>{title}</title> : null}
<path
className="euiIcon__fillSecondary"
className="euiIcon__fillSuccess"
d="M2.909 26.182h1.939v4.848H2.909z"
/>
<path d="M4.848 16.62V0H2.91v16.62a3.879 3.879 0 101.94 0zm-.97 5.683a1.94 1.94 0 110-3.879 1.94 1.94 0 010 3.879z" />
<path
className="euiIcon__fillSecondary"
className="euiIcon__fillSuccess"
d="M14.545 16.485h1.939V31.03h-1.939z"
/>
<path d="M16.485 6.924V0h-1.94v6.924a3.879 3.879 0 101.94 0zm-.97 5.682a1.94 1.94 0 110-3.879 1.94 1.94 0 010 3.88z" />
<path
className="euiIcon__fillSecondary"
className="euiIcon__fillSuccess"
d="M26.182 26.182h1.939v4.848h-1.939z"
/>
<path d="M28.121 16.62V0h-1.94v16.62a3.879 3.879 0 101.94 0zm-.97 5.683a1.94 1.94 0 110-3.879 1.94 1.94 0 010 3.879z" />
Expand Down
6 changes: 3 additions & 3 deletions src/components/icon/assets/app_advanced_settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_apm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const EuiIconAppApm = ({ title, titleId, ...props }) => (
{title ? <title id={titleId}>{title}</title> : null}
<path d="M3 10h4v2H1V1h30v6h-2V3H3v7zm26 19v-6h2v8H18v-8h2v6h9z" />
<path
className="euiIcon__fillSecondary"
className="euiIcon__fillSuccess"
d="M31 10H9v11h12c5.523 0 10-4.477 10-10v-1zm-10 9H11v-7h17.938A8.001 8.001 0 0121 19z"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_apm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_app_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const EuiIconAppAppSearch = ({ title, titleId, ...props }) => (
/>
<path
fillRule="evenodd"
className="euiIcon__fillSecondary"
className="euiIcon__fillSuccess"
d="M18.409 13.55a7.089 7.089 0 011.035 1.711A6.93 6.93 0 0120 17.98v13.27l7.5-4.33a7 7 0 003.5-6.061v-9.239a6.992 6.992 0 00-1.587-4.421L18.409 13.55zm2.777.705A8.933 8.933 0 0122 17.979v9.807l4.5-2.598a5 5 0 002.5-4.33V11.62c0-.588-.106-1.161-.303-1.7l-7.511 4.335z"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_app_search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_auditbeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const EuiIconAppAuditbeat = ({ title, titleId, ...props }) => (
aria-labelledby={titleId}
{...props}>
{title ? <title id={titleId}>{title}</title> : null}
<path className="euiIcon__fillSecondary" d="M15 0h2v32h-2z" />
<path className="euiIcon__fillSuccess" d="M15 0h2v32h-2z" />
<path d="M0 32h13v-2H2V2h11V0H0zM19 0v2h11v28H19v2h13V0z" />
</svg>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_auditbeat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_canvas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/components/icon/assets/app_canvas.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const EuiIconAppCode = ({ title, titleId, ...props }) => (
{title ? <title id={titleId}>{title}</title> : null}
<path d="M11.276 29l.594 2H0l7.621-14.29.811 2.73L3.333 29h7.943zM28.92 31l-4.987-16.598A16 16 0 008.688 3l1.8 6H8.4L6 1h2.607a18 18 0 0117.241 12.828L31 31h-2.08z" />
<path
className="euiIcon__fillSecondary"
className="euiIcon__fillSuccess"
d="M12.037 14.02L16.492 29h6.827l-2.333-7.849a10 10 0 00-8.949-7.13zM9.35 12h2.05a12 12 0 0111.503 8.581L26 31H15L9.35 12z"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion src/components/icon/assets/app_code.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 76ed608

Please sign in to comment.