Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EuiComboBox] Matching placeholder color to other form elements #4744

Merged
merged 10 commits into from
Apr 27, 2021
Merged
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Removed `MutationObserver` fallback from `EuiResizeObserver` ([#4709](https://github.com/elastic/eui/pull/4709))
- Added global SASS variable `$euiColorPlaceholderText` ([#4744](https://github.com/elastic/eui/pull/4744))
- Added forms Sass variable `$euiFormControlPlaceholderText` ([#4744](https://github.com/elastic/eui/pull/4744))
myasonik marked this conversation as resolved.
Show resolved Hide resolved

**Bug fixes**

Expand Down
4 changes: 2 additions & 2 deletions src-docs/src/views/guidelines/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ export default ({ selectedTheme }) => {
<p>
A slightly less subtle shade for text, yet more subtle than the
default text color. Mapped to{' '}
<EuiCode>euiColorPlaceholderText</EuiCode> for placeholder text in
forms.
<EuiCode>euiFormControlPlaceholderText</EuiCode> for placeholder
text in forms.
</p>
</ColorSection>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
pointer-events: none;
padding-left: $euiSizeXS;
line-height: $euiSizeXL;
color: $euiColorPlaceholderText;
color: $euiFormControlPlaceholderText;
margin-bottom: 0 !important; // sass-lint:disable-line no-important
}
2 changes: 1 addition & 1 deletion src/global_styling/mixins/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

// sass-lint:disable-block mixins-before-declarations
@include euiPlaceholderPerBrowser {
myasonik marked this conversation as resolved.
Show resolved Hide resolved
color: $euiColorPlaceholderText;
color: $euiFormControlPlaceholderText;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/global_styling/variables/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ $euiColorDangerText: makeHighContrastColor($euiColorDanger) !default;
$euiColorDisabledText: makeDisabledContrastColor($euiColorDisabled) !default;
$euiColorSuccessText: $euiColorSecondaryText !default;
$euiLinkColor: $euiColorPrimaryText !default;
$euiColorPlaceholderText: $euiColorDarkShade !default;

// Visualization colors

Expand Down
1 change: 1 addition & 0 deletions src/global_styling/variables/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ $euiFormCustomControlDisabledIconColor: shadeOrTint($euiColorMediumShade, 38%, 4
$euiFormCustomControlBorderColor: shadeOrTint($euiColorLightestShade, 18%, 30%) !default;
$euiFormControlDisabledColor: $euiColorMediumShade !default;
$euiFormControlBoxShadow: 0 1px 1px -1px transparentize($euiShadowColor, .8), 0 3px 2px -2px transparentize($euiShadowColor, .8) !default;
$euiFormControlPlaceholderText: $euiColorDarkShade !default;
myasonik marked this conversation as resolved.
Show resolved Hide resolved
$euiFormInputGroupLabelBackground: tintOrShade($euiColorLightShade, 50%, 40%) !default;
$euiFormInputGroupBorder: 1px solid shadeOrTint($euiFormInputGroupLabelBackground, 2%, 4%) !default;
$euiSwitchOffColor: lightOrDarkTheme(transparentize($euiColorMediumShade, .8), transparentize($euiColorMediumShade, .3)) !default;
Expand Down