Skip to content

[backport] PR #8391 to 5.0#8444

Merged
Bargs merged 1 commit into5.0from
jasper/backport/8391/5.0
Sep 22, 2016
Merged

[backport] PR #8391 to 5.0#8444
Bargs merged 1 commit into5.0from
jasper/backport/8391/5.0

Conversation

@elastic-jasper
Copy link
Contributor

Backport PR #8391

Commit 1:
Don't try to delete index template along with pattern

This commit reverts a change to use the ingest API when deleting index
patterns via the Kibana UI. Back when I was building the Filebeat wizard
it made sense to try to delete any index templates or pipelines that may
have been created along with an index pattern. But now that we're only
shipping with CSV Upload, and we don't delete the actual indices that
CSV upload creates, it doesn't make much sense to delete the template.
Now we'll treate the indices and templates consistently.

This also fixes an issue where users would get a fatal error if they
were using Security and they didn't have permissions to delete
templates. Every index pattern deletion would also attempt to delete an
associated template, so if the user didn't have the correct permissions
they would get a 403.

Related: #6457

---------

**Commit 1:**
Don't try to delete index template along with pattern

This commit reverts a change to use the ingest API when deleting index
patterns via the Kibana UI. Back when I was building the Filebeat wizard
it made sense to try to delete any index templates or pipelines that may
have been created along with an index pattern. But now that we're only
shipping with CSV Upload, and we don't delete the actual indices that
CSV upload creates, it doesn't make much sense to delete the template.
Now we'll treate the indices and templates consistently.

This also fixes an issue where users would get a fatal error if they
were using Security and they didn't have permissions to delete
templates. Every index pattern deletion would also attempt to delete an
associated template, so if the user didn't have the correct permissions
they would get a 403.

Related: #6457

* Original sha: daa5b3b
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-09-20T22:43:03Z
@elastic-jasper elastic-jasper added the backport This PR is a backport of another PR label Sep 22, 2016
@Bargs Bargs merged commit 1fcde22 into 5.0 Sep 22, 2016
@epixa epixa deleted the jasper/backport/8391/5.0 branch September 27, 2016 07:59
mgadewoll added a commit that referenced this pull request Mar 28, 2025
`100.0.0` ⏩ `101.0.1`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

### `@elastic/eui`
[`v101.0.1`](https://github.com/elastic/eui/releases/v101.0.1)

- Updated `EuiProvider` and `EuiThemeProvider` with a new
`highContrastMode` ([#8444](elastic/eui#8444))
- This prop allows toggling a higher contrast visual style that
primarily affects borders and shadows
- On `EuiProvider`, if the `highContrastMode` prop is not passed, this
setting will inherit from the user's OS/system settings
- If the user is using a forced colors mode (e.g. Windows' high contrast
themes), this system setting will take precedence over any
`highContrastMode` or `colorMode` props passed
- Added `highContrastModeStyles` and `preventForcedColors` styling utils
([#8444](elastic/eui#8444))
- Updated `EuiRangeTooltip` to be easier to see in dark mode
([#8444](elastic/eui#8444))
- Updated some deprecated color token usages that have direct
substitutes ([#8444](elastic/eui#8444))
  - `text` -> `textParagraph`
  - `title` -> `textHeading`
  - `subduedText` -> `textSubdued`
  - `disabledText` -> `textDisabled`
  - `accentText` -> `textAccent`
  - `dangerText` -> `textDanger`
  - `warningText` -> `textWarning`
- `useEuiShadow()` now accepts a second `options` argument
([#8234](elastic/eui#8234))
- `useEuiShadowFlat()` now accepts an `options` object instead of only a
color ([#8234](elastic/eui#8234))
- Updated `EuiPopover` and `EuiToolTip` to be easier to see in dark
mode. ([#8174](elastic/eui#8174))

**Bug fixes**

- Fixed a visual bug where a transparent border would create visible
empty space (`LIGHT` mode only) for the components:
([#8427](elastic/eui#8427))
  - `EuiPanel`
  - `EuiPopover`
  - `EuiToolTip`
  - `EuiToast`
  - `EuiTour`
  
  --- 
  
### `@elastic/eui-theme-common`
[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)

- Removed type `EuiShadowCustomColor`
([#8444](elastic/eui#8444))
- Added types:  ([#8444](elastic/eui#8444))
  - `EuiShadowOptions`
  - `EuiThemeHighContrastModeProp`
  - `EuiThemeHighContrastMode`
- Updated shadow utils to accepts a second `options` argument and return
borders in high contrast mode:
([#8444](elastic/eui#8444))
  - `euiShadow`
  - `euiShadowXSmall`
  - `euiShadowSmall`
  - `euiShadowMedium`
  - `euiShadowLarge`
  - `euiSlightShadowHover`
  - `euiShadowFlat`
  
  ---
  
### `@elastic/eui-theme-borealis`
[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)

- Added new component level tokens:
([#8444](elastic/eui#8444))
  - `buttonGroupBackgroundDisabledSelected`
  - `overlayMaskBackground`
  - `overlayMaskBackgroundHighContrast`
  - `skeletonBackgroundSkeletonMiddleHighContrast`
  

## Additional changes

The latest `@elastic/eui` package introduces high contrast mode support.
This PR sets all usages of `EuiProvider` to use
`highContrastMode={false}` to introduce it in disabled state (this
reflects the current functionality in Kibana). This is because the UI
for the high contrast mode functionality (and style adjustments) need to
first be implemented on Kibana side (by shared-ux).

## QA

Adding high contrast mode in disabled state should result in no visual
changes in Kibana. Please ensure your product view remain unchanged.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
mgadewoll added a commit to mgadewoll/kibana that referenced this pull request Mar 28, 2025
`100.0.0` ⏩ `101.0.1`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

### `@elastic/eui`
[`v101.0.1`](https://github.com/elastic/eui/releases/v101.0.1)

- Updated `EuiProvider` and `EuiThemeProvider` with a new
`highContrastMode` ([elastic#8444](elastic/eui#8444))
- This prop allows toggling a higher contrast visual style that
primarily affects borders and shadows
- On `EuiProvider`, if the `highContrastMode` prop is not passed, this
setting will inherit from the user's OS/system settings
- If the user is using a forced colors mode (e.g. Windows' high contrast
themes), this system setting will take precedence over any
`highContrastMode` or `colorMode` props passed
- Added `highContrastModeStyles` and `preventForcedColors` styling utils
([elastic#8444](elastic/eui#8444))
- Updated `EuiRangeTooltip` to be easier to see in dark mode
([elastic#8444](elastic/eui#8444))
- Updated some deprecated color token usages that have direct
substitutes ([elastic#8444](elastic/eui#8444))
  - `text` -> `textParagraph`
  - `title` -> `textHeading`
  - `subduedText` -> `textSubdued`
  - `disabledText` -> `textDisabled`
  - `accentText` -> `textAccent`
  - `dangerText` -> `textDanger`
  - `warningText` -> `textWarning`
- `useEuiShadow()` now accepts a second `options` argument
([elastic#8234](elastic/eui#8234))
- `useEuiShadowFlat()` now accepts an `options` object instead of only a
color ([elastic#8234](elastic/eui#8234))
- Updated `EuiPopover` and `EuiToolTip` to be easier to see in dark
mode. ([elastic#8174](elastic/eui#8174))

**Bug fixes**

- Fixed a visual bug where a transparent border would create visible
empty space (`LIGHT` mode only) for the components:
([elastic#8427](elastic/eui#8427))
  - `EuiPanel`
  - `EuiPopover`
  - `EuiToolTip`
  - `EuiToast`
  - `EuiTour`

  ---

### `@elastic/eui-theme-common`
[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)

- Removed type `EuiShadowCustomColor`
([elastic#8444](elastic/eui#8444))
- Added types:  ([elastic#8444](elastic/eui#8444))
  - `EuiShadowOptions`
  - `EuiThemeHighContrastModeProp`
  - `EuiThemeHighContrastMode`
- Updated shadow utils to accepts a second `options` argument and return
borders in high contrast mode:
([elastic#8444](elastic/eui#8444))
  - `euiShadow`
  - `euiShadowXSmall`
  - `euiShadowSmall`
  - `euiShadowMedium`
  - `euiShadowLarge`
  - `euiSlightShadowHover`
  - `euiShadowFlat`

  ---

### `@elastic/eui-theme-borealis`
[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)

- Added new component level tokens:
([elastic#8444](elastic/eui#8444))
  - `buttonGroupBackgroundDisabledSelected`
  - `overlayMaskBackground`
  - `overlayMaskBackgroundHighContrast`
  - `skeletonBackgroundSkeletonMiddleHighContrast`

## Additional changes

The latest `@elastic/eui` package introduces high contrast mode support.
This PR sets all usages of `EuiProvider` to use
`highContrastMode={false}` to introduce it in disabled state (this
reflects the current functionality in Kibana). This is because the UI
for the high contrast mode functionality (and style adjustments) need to
first be implemented on Kibana side (by shared-ux).

## QA

Adding high contrast mode in disabled state should result in no visual
changes in Kibana. Please ensure your product view remain unchanged.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 2cd777d)

# Conflicts:
#	src/platform/plugins/shared/discover/public/application/main/components/layout/discover_layout.test.tsx
mgadewoll added a commit that referenced this pull request Mar 31, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [Upgrade EUI to v101.0.1
(#215698)](#215698)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Lene
Gadewoll","email":"lene.gadewoll@elastic.co"},"sourceCommit":{"committedDate":"2025-03-28T18:29:23Z","message":"Upgrade
EUI to v101.0.1 (#215698)\n\n`100.0.0` ⏩ `101.0.1`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Package updates\n\n###
`@elastic/eui`\n[`v101.0.1`](https://github.com/elastic/eui/releases/v101.0.1)\n\n-
Updated `EuiProvider` and `EuiThemeProvider` with a
new\n`highContrastMode`
([#8444](https://github.com/elastic/eui/pull/8444))\n- This prop allows
toggling a higher contrast visual style that\nprimarily affects borders
and shadows\n- On `EuiProvider`, if the `highContrastMode` prop is not
passed, this\nsetting will inherit from the user's OS/system settings\n-
If the user is using a forced colors mode (e.g. Windows' high
contrast\nthemes), this system setting will take precedence over
any\n`highContrastMode` or `colorMode` props passed\n- Added
`highContrastModeStyles` and `preventForcedColors` styling
utils\n([#8444](https://github.com/elastic/eui/pull/8444))\n- Updated
`EuiRangeTooltip` to be easier to see in dark
mode\n([#8444](https://github.com/elastic/eui/pull/8444))\n- Updated
some deprecated color token usages that have direct\nsubstitutes
([#8444](https://github.com/elastic/eui/pull/8444))\n - `text` ->
`textParagraph`\n - `title` -> `textHeading`\n - `subduedText` ->
`textSubdued`\n - `disabledText` -> `textDisabled`\n - `accentText` ->
`textAccent`\n - `dangerText` -> `textDanger`\n - `warningText` ->
`textWarning`\n- `useEuiShadow()` now accepts a second `options`
argument\n([#8234](https://github.com/elastic/eui/pull/8234))\n-
`useEuiShadowFlat()` now accepts an `options` object instead of only
a\ncolor ([#8234](https://github.com/elastic/eui/pull/8234))\n- Updated
`EuiPopover` and `EuiToolTip` to be easier to see in dark\nmode.
([#8174](https://github.com/elastic/eui/pull/8174))\n\n**Bug
fixes**\n\n- Fixed a visual bug where a transparent border would create
visible\nempty space (`LIGHT` mode only) for the
components:\n([#8427](https://github.com/elastic/eui/pull/8427))\n -
`EuiPanel`\n - `EuiPopover`\n - `EuiToolTip`\n - `EuiToast`\n -
`EuiTour`\n \n --- \n \n###
`@elastic/eui-theme-common`\n[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)\n\n-
Removed type
`EuiShadowCustomColor`\n([#8444](https://github.com/elastic/eui/pull/8444))\n-
Added types: ([#8444](https://github.com/elastic/eui/pull/8444))\n -
`EuiShadowOptions`\n - `EuiThemeHighContrastModeProp`\n -
`EuiThemeHighContrastMode`\n- Updated shadow utils to accepts a second
`options` argument and return\nborders in high contrast
mode:\n([#8444](https://github.com/elastic/eui/pull/8444))\n -
`euiShadow`\n - `euiShadowXSmall`\n - `euiShadowSmall`\n -
`euiShadowMedium`\n - `euiShadowLarge`\n - `euiSlightShadowHover`\n -
`euiShadowFlat`\n \n ---\n \n###
`@elastic/eui-theme-borealis`\n[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)\n\n-
Added new component level
tokens:\n([#8444](https://github.com/elastic/eui/pull/8444))\n -
`buttonGroupBackgroundDisabledSelected`\n - `overlayMaskBackground`\n -
`overlayMaskBackgroundHighContrast`\n -
`skeletonBackgroundSkeletonMiddleHighContrast`\n \n\n## Additional
changes\n\nThe latest `@elastic/eui` package introduces high contrast
mode support.\nThis PR sets all usages of `EuiProvider` to
use\n`highContrastMode={false}` to introduce it in disabled state
(this\nreflects the current functionality in Kibana). This is because
the UI\nfor the high contrast mode functionality (and style adjustments)
need to\nfirst be implemented on Kibana side (by shared-ux).\n\n##
QA\n\nAdding high contrast mode in disabled state should result in no
visual\nchanges in Kibana. Please ensure your product view remain
unchanged.\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"2cd777d96909a73bab547cc3e3f509fc7ef916af","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","v9.0.0","backport:prev-minor","ci:cloud-deploy","ci:project-deploy-elasticsearch","ci:project-deploy-observability","ci:project-deploy-security","Team:obs-ux-infra_services","Team:obs-ux-management","v9.1.0"],"title":"Upgrade
EUI to
v101.0.1","number":215698,"url":"https://github.com/elastic/kibana/pull/215698","mergeCommit":{"message":"Upgrade
EUI to v101.0.1 (#215698)\n\n`100.0.0` ⏩ `101.0.1`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Package updates\n\n###
`@elastic/eui`\n[`v101.0.1`](https://github.com/elastic/eui/releases/v101.0.1)\n\n-
Updated `EuiProvider` and `EuiThemeProvider` with a
new\n`highContrastMode`
([#8444](https://github.com/elastic/eui/pull/8444))\n- This prop allows
toggling a higher contrast visual style that\nprimarily affects borders
and shadows\n- On `EuiProvider`, if the `highContrastMode` prop is not
passed, this\nsetting will inherit from the user's OS/system settings\n-
If the user is using a forced colors mode (e.g. Windows' high
contrast\nthemes), this system setting will take precedence over
any\n`highContrastMode` or `colorMode` props passed\n- Added
`highContrastModeStyles` and `preventForcedColors` styling
utils\n([#8444](https://github.com/elastic/eui/pull/8444))\n- Updated
`EuiRangeTooltip` to be easier to see in dark
mode\n([#8444](https://github.com/elastic/eui/pull/8444))\n- Updated
some deprecated color token usages that have direct\nsubstitutes
([#8444](https://github.com/elastic/eui/pull/8444))\n - `text` ->
`textParagraph`\n - `title` -> `textHeading`\n - `subduedText` ->
`textSubdued`\n - `disabledText` -> `textDisabled`\n - `accentText` ->
`textAccent`\n - `dangerText` -> `textDanger`\n - `warningText` ->
`textWarning`\n- `useEuiShadow()` now accepts a second `options`
argument\n([#8234](https://github.com/elastic/eui/pull/8234))\n-
`useEuiShadowFlat()` now accepts an `options` object instead of only
a\ncolor ([#8234](https://github.com/elastic/eui/pull/8234))\n- Updated
`EuiPopover` and `EuiToolTip` to be easier to see in dark\nmode.
([#8174](https://github.com/elastic/eui/pull/8174))\n\n**Bug
fixes**\n\n- Fixed a visual bug where a transparent border would create
visible\nempty space (`LIGHT` mode only) for the
components:\n([#8427](https://github.com/elastic/eui/pull/8427))\n -
`EuiPanel`\n - `EuiPopover`\n - `EuiToolTip`\n - `EuiToast`\n -
`EuiTour`\n \n --- \n \n###
`@elastic/eui-theme-common`\n[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)\n\n-
Removed type
`EuiShadowCustomColor`\n([#8444](https://github.com/elastic/eui/pull/8444))\n-
Added types: ([#8444](https://github.com/elastic/eui/pull/8444))\n -
`EuiShadowOptions`\n - `EuiThemeHighContrastModeProp`\n -
`EuiThemeHighContrastMode`\n- Updated shadow utils to accepts a second
`options` argument and return\nborders in high contrast
mode:\n([#8444](https://github.com/elastic/eui/pull/8444))\n -
`euiShadow`\n - `euiShadowXSmall`\n - `euiShadowSmall`\n -
`euiShadowMedium`\n - `euiShadowLarge`\n - `euiSlightShadowHover`\n -
`euiShadowFlat`\n \n ---\n \n###
`@elastic/eui-theme-borealis`\n[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)\n\n-
Added new component level
tokens:\n([#8444](https://github.com/elastic/eui/pull/8444))\n -
`buttonGroupBackgroundDisabledSelected`\n - `overlayMaskBackground`\n -
`overlayMaskBackgroundHighContrast`\n -
`skeletonBackgroundSkeletonMiddleHighContrast`\n \n\n## Additional
changes\n\nThe latest `@elastic/eui` package introduces high contrast
mode support.\nThis PR sets all usages of `EuiProvider` to
use\n`highContrastMode={false}` to introduce it in disabled state
(this\nreflects the current functionality in Kibana). This is because
the UI\nfor the high contrast mode functionality (and style adjustments)
need to\nfirst be implemented on Kibana side (by shared-ux).\n\n##
QA\n\nAdding high contrast mode in disabled state should result in no
visual\nchanges in Kibana. Please ensure your product view remain
unchanged.\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"2cd777d96909a73bab547cc3e3f509fc7ef916af"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215698","number":215698,"mergeCommit":{"message":"Upgrade
EUI to v101.0.1 (#215698)\n\n`100.0.0` ⏩ `101.0.1`\n\n[Questions? Please
see our Kibana
upgrade\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)\n\n##
Package updates\n\n###
`@elastic/eui`\n[`v101.0.1`](https://github.com/elastic/eui/releases/v101.0.1)\n\n-
Updated `EuiProvider` and `EuiThemeProvider` with a
new\n`highContrastMode`
([#8444](https://github.com/elastic/eui/pull/8444))\n- This prop allows
toggling a higher contrast visual style that\nprimarily affects borders
and shadows\n- On `EuiProvider`, if the `highContrastMode` prop is not
passed, this\nsetting will inherit from the user's OS/system settings\n-
If the user is using a forced colors mode (e.g. Windows' high
contrast\nthemes), this system setting will take precedence over
any\n`highContrastMode` or `colorMode` props passed\n- Added
`highContrastModeStyles` and `preventForcedColors` styling
utils\n([#8444](https://github.com/elastic/eui/pull/8444))\n- Updated
`EuiRangeTooltip` to be easier to see in dark
mode\n([#8444](https://github.com/elastic/eui/pull/8444))\n- Updated
some deprecated color token usages that have direct\nsubstitutes
([#8444](https://github.com/elastic/eui/pull/8444))\n - `text` ->
`textParagraph`\n - `title` -> `textHeading`\n - `subduedText` ->
`textSubdued`\n - `disabledText` -> `textDisabled`\n - `accentText` ->
`textAccent`\n - `dangerText` -> `textDanger`\n - `warningText` ->
`textWarning`\n- `useEuiShadow()` now accepts a second `options`
argument\n([#8234](https://github.com/elastic/eui/pull/8234))\n-
`useEuiShadowFlat()` now accepts an `options` object instead of only
a\ncolor ([#8234](https://github.com/elastic/eui/pull/8234))\n- Updated
`EuiPopover` and `EuiToolTip` to be easier to see in dark\nmode.
([#8174](https://github.com/elastic/eui/pull/8174))\n\n**Bug
fixes**\n\n- Fixed a visual bug where a transparent border would create
visible\nempty space (`LIGHT` mode only) for the
components:\n([#8427](https://github.com/elastic/eui/pull/8427))\n -
`EuiPanel`\n - `EuiPopover`\n - `EuiToolTip`\n - `EuiToast`\n -
`EuiTour`\n \n --- \n \n###
`@elastic/eui-theme-common`\n[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)\n\n-
Removed type
`EuiShadowCustomColor`\n([#8444](https://github.com/elastic/eui/pull/8444))\n-
Added types: ([#8444](https://github.com/elastic/eui/pull/8444))\n -
`EuiShadowOptions`\n - `EuiThemeHighContrastModeProp`\n -
`EuiThemeHighContrastMode`\n- Updated shadow utils to accepts a second
`options` argument and return\nborders in high contrast
mode:\n([#8444](https://github.com/elastic/eui/pull/8444))\n -
`euiShadow`\n - `euiShadowXSmall`\n - `euiShadowSmall`\n -
`euiShadowMedium`\n - `euiShadowLarge`\n - `euiSlightShadowHover`\n -
`euiShadowFlat`\n \n ---\n \n###
`@elastic/eui-theme-borealis`\n[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)\n\n-
Added new component level
tokens:\n([#8444](https://github.com/elastic/eui/pull/8444))\n -
`buttonGroupBackgroundDisabledSelected`\n - `overlayMaskBackground`\n -
`overlayMaskBackgroundHighContrast`\n -
`skeletonBackgroundSkeletonMiddleHighContrast`\n \n\n## Additional
changes\n\nThe latest `@elastic/eui` package introduces high contrast
mode support.\nThis PR sets all usages of `EuiProvider` to
use\n`highContrastMode={false}` to introduce it in disabled state
(this\nreflects the current functionality in Kibana). This is because
the UI\nfor the high contrast mode functionality (and style adjustments)
need to\nfirst be implemented on Kibana side (by shared-ux).\n\n##
QA\n\nAdding high contrast mode in disabled state should result in no
visual\nchanges in Kibana. Please ensure your product view remain
unchanged.\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"2cd777d96909a73bab547cc3e3f509fc7ef916af"}}]}]
BACKPORT-->

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
cqliu1 pushed a commit to cqliu1/kibana that referenced this pull request Mar 31, 2025
`100.0.0` ⏩ `101.0.1`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

### `@elastic/eui`
[`v101.0.1`](https://github.com/elastic/eui/releases/v101.0.1)

- Updated `EuiProvider` and `EuiThemeProvider` with a new
`highContrastMode` ([elastic#8444](elastic/eui#8444))
- This prop allows toggling a higher contrast visual style that
primarily affects borders and shadows
- On `EuiProvider`, if the `highContrastMode` prop is not passed, this
setting will inherit from the user's OS/system settings
- If the user is using a forced colors mode (e.g. Windows' high contrast
themes), this system setting will take precedence over any
`highContrastMode` or `colorMode` props passed
- Added `highContrastModeStyles` and `preventForcedColors` styling utils
([elastic#8444](elastic/eui#8444))
- Updated `EuiRangeTooltip` to be easier to see in dark mode
([elastic#8444](elastic/eui#8444))
- Updated some deprecated color token usages that have direct
substitutes ([elastic#8444](elastic/eui#8444))
  - `text` -> `textParagraph`
  - `title` -> `textHeading`
  - `subduedText` -> `textSubdued`
  - `disabledText` -> `textDisabled`
  - `accentText` -> `textAccent`
  - `dangerText` -> `textDanger`
  - `warningText` -> `textWarning`
- `useEuiShadow()` now accepts a second `options` argument
([elastic#8234](elastic/eui#8234))
- `useEuiShadowFlat()` now accepts an `options` object instead of only a
color ([elastic#8234](elastic/eui#8234))
- Updated `EuiPopover` and `EuiToolTip` to be easier to see in dark
mode. ([elastic#8174](elastic/eui#8174))

**Bug fixes**

- Fixed a visual bug where a transparent border would create visible
empty space (`LIGHT` mode only) for the components:
([elastic#8427](elastic/eui#8427))
  - `EuiPanel`
  - `EuiPopover`
  - `EuiToolTip`
  - `EuiToast`
  - `EuiTour`
  
  --- 
  
### `@elastic/eui-theme-common`
[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)

- Removed type `EuiShadowCustomColor`
([elastic#8444](elastic/eui#8444))
- Added types:  ([elastic#8444](elastic/eui#8444))
  - `EuiShadowOptions`
  - `EuiThemeHighContrastModeProp`
  - `EuiThemeHighContrastMode`
- Updated shadow utils to accepts a second `options` argument and return
borders in high contrast mode:
([elastic#8444](elastic/eui#8444))
  - `euiShadow`
  - `euiShadowXSmall`
  - `euiShadowSmall`
  - `euiShadowMedium`
  - `euiShadowLarge`
  - `euiSlightShadowHover`
  - `euiShadowFlat`
  
  ---
  
### `@elastic/eui-theme-borealis`
[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)

- Added new component level tokens:
([elastic#8444](elastic/eui#8444))
  - `buttonGroupBackgroundDisabledSelected`
  - `overlayMaskBackground`
  - `overlayMaskBackgroundHighContrast`
  - `skeletonBackgroundSkeletonMiddleHighContrast`
  

## Additional changes

The latest `@elastic/eui` package introduces high contrast mode support.
This PR sets all usages of `EuiProvider` to use
`highContrastMode={false}` to introduce it in disabled state (this
reflects the current functionality in Kibana). This is because the UI
for the high contrast mode functionality (and style adjustments) need to
first be implemented on Kibana side (by shared-ux).

## QA

Adding high contrast mode in disabled state should result in no visual
changes in Kibana. Please ensure your product view remain unchanged.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
mgadewoll added a commit that referenced this pull request Apr 3, 2025
>[!IMPORtANT]
This PR is the direct, manual backport to `8.x` for [this
PR](#215698) that's being merged
to `main`.
The reason it's handled manually is that `8.x` receives a custom EUI
release that still has the "Amsterdam" theme as default theme enabled.

---

`100.0.0` ⏩ `101.1.0`

[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)

## Package updates

### `@elastic/eui`
[`v101.1.0`](https://github.com/elastic/eui/releases/v101.1.0)

- Updates `EuiTableRow` styles to check support for `:has(+)` selector
([#8498](elastic/eui#8498))

### `@elastic/eui`
[`v101.0.1`](https://github.com/elastic/eui/releases/v101.0.1)

- Updated `EuiProvider` and `EuiThemeProvider` with a new
`highContrastMode` ([#8444](elastic/eui#8444))
- This prop allows toggling a higher contrast visual style that
primarily affects borders and shadows
- On `EuiProvider`, if the `highContrastMode` prop is not passed, this
setting will inherit from the user's OS/system settings
- If the user is using a forced colors mode (e.g. Windows' high contrast
themes), this system setting will take precedence over any
`highContrastMode` or `colorMode` props passed
- Added `highContrastModeStyles` and `preventForcedColors` styling utils
([#8444](elastic/eui#8444))
- Updated `EuiRangeTooltip` to be easier to see in dark mode
([#8444](elastic/eui#8444))
- Updated some deprecated color token usages that have direct
substitutes ([#8444](elastic/eui#8444))
  - `text` -> `textParagraph`
  - `title` -> `textHeading`
  - `subduedText` -> `textSubdued`
  - `disabledText` -> `textDisabled`
  - `accentText` -> `textAccent`
  - `dangerText` -> `textDanger`
  - `warningText` -> `textWarning`
- `useEuiShadow()` now accepts a second `options` argument
([#8234](elastic/eui#8234))
- `useEuiShadowFlat()` now accepts an `options` object instead of only a
color ([#8234](elastic/eui#8234))
- Updated `EuiPopover` and `EuiToolTip` to be easier to see in dark
mode. ([#8174](elastic/eui#8174))

**Bug fixes**

- Fixed a visual bug where a transparent border would create visible
empty space (`LIGHT` mode only) for the components:
([#8427](elastic/eui#8427))
  - `EuiPanel`
  - `EuiPopover`
  - `EuiToolTip`
  - `EuiToast`
  - `EuiTour`
  
  --- 
  
### `@elastic/eui-theme-common`
[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)

- Removed type `EuiShadowCustomColor`
([#8444](elastic/eui#8444))
- Added types:  ([#8444](elastic/eui#8444))
  - `EuiShadowOptions`
  - `EuiThemeHighContrastModeProp`
  - `EuiThemeHighContrastMode`
- Updated shadow utils to accepts a second `options` argument and return
borders in high contrast mode:
([#8444](elastic/eui#8444))
  - `euiShadow`
  - `euiShadowXSmall`
  - `euiShadowSmall`
  - `euiShadowMedium`
  - `euiShadowLarge`
  - `euiSlightShadowHover`
  - `euiShadowFlat`
  
  ---
  
### `@elastic/eui-theme-borealis`
[`v0.1.0`](https://github.com/elastic/eui/releases/v0.1.0)

- Added new component level tokens:
([#8444](elastic/eui#8444))
  - `buttonGroupBackgroundDisabledSelected`
  - `overlayMaskBackground`
  - `overlayMaskBackgroundHighContrast`
  - `skeletonBackgroundSkeletonMiddleHighContrast`
  

## Additional changes

The latest `@elastic/eui` package introduces high contrast mode support.
This PR sets the root `EuiProvider` to use `highContrastMode={false}` to
introduce it in disabled state (this reflects the current functionality
in Kibana).
Cloud-UI can enable this whenever it's tested and supported from their
end.

## QA

Adding high contrast mode in disabled state should result in no visual
changes to the UI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants